Documentation ¶
Index ¶
- func ADelete(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- func AGet(url string, timeout time.Duration, headers ...KV) (int, []byte, error)
- func APatch(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- func APost(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- func Delete(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- func Get(url string, timeout time.Duration, headers ...KV) (int, []byte, error)
- func Patch(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- func Post(url string, timeout time.Duration, b []byte, headers ...KV) (int, []byte, error)
- type HTTPClient
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface { Do(req *http.Request) (*http.Response, error) SetTimeout(timeout time.Duration) }
var Client HTTPClient
Click to show internal directories.
Click to hide internal directories.