Documentation
¶
Index ¶
- func Delete(url string) (*http.Response, error)
- func DeleteWithHeaders(url string, headers map[string]string) (*http.Response, error)
- func Get(url string) (*http.Response, error)
- func GetWithHeaders(url string, headers map[string]string) (*http.Response, error)
- func Init()
- func Post(url string, body []byte) (*http.Response, error)
- func PostWithHeaders(url string, headers map[string]string, body []byte) (*http.Response, error)
- type HTTPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithHeaders ¶ added in v1.2.2
DeleteWithHeaders performs an HTTP DELETE request with headers.
func GetWithHeaders ¶ added in v1.2.2
GetWithHeaders performs an HTTP GET request with headers.
Types ¶
type HTTPClient ¶
HTTPClient defines an HTTP client interface to perform HTTP requests.
var ( // Client is the http client used to make requests Client HTTPClient )
Click to show internal directories.
Click to hide internal directories.