Documentation
¶
Index ¶
- type Curl
- type Option
- type Response
- func Delete(url string) (Response, error)
- func Get(url string) (Response, error)
- func Patch(url string, body io.Reader) (Response, error)
- func Post(url string, body io.Reader) (Response, error)
- func PostFile(url string, files map[string]string, params map[string]string) (Response, error)
- func Put(url string, body io.Reader) (Response, error)
- func Send(request *http.Request) (Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Curl ¶ added in v1.0.0
type Curl interface {
Get(url string) (Response, error)
Post(url string, body io.Reader) (Response, error)
Put(url string, body io.Reader) (Response, error)
Patch(url string, body io.Reader) (Response, error)
Delete(url string) (Response, error)
PostFile(url string, files map[string]string, params map[string]string) (Response, error)
Send(request *http.Request) (Response, error)
}
Curl
type Option ¶ added in v1.0.0
type Option interface {
// contains filtered or unexported methods
}
func WithTimeout ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.