Documentation
¶
Index ¶
- Variables
- type Requests
- func (r *Requests) Delete(url string, args ...interface{}) (*Response, error)
- func (r *Requests) Get(url string, args ...interface{}) (*Response, error)
- func (r *Requests) Post(url string, args ...interface{}) (*Response, error)
- func (r *Requests) Put(url string, args ...interface{}) (*Response, error)
- func (r *Requests) Request(m method.Method, url string, args ...any) (*Response, error)
- type Response
- func Delete(url string, args ...interface{}) (*Response, error)
- func Get(url string, args ...interface{}) (*Response, error)
- func Post(url string, args ...interface{}) (*Response, error)
- func Put(url string, args ...interface{}) (*Response, error)
- func Request(method method.Method, url string, args ...interface{}) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUrl = errors.New("请传入URL") ErrNoBody = errors.New("请传入Body") )
Functions ¶
This section is empty.
Types ¶
type Requests ¶
type Requests struct {
// contains filtered or unexported fields
}
func NewRequests ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.