Documentation ¶
Overview ¶
Package restclient is an abstration that perform http requests
Package restclient is an abstration that perform http requests
Index ¶
- Variables
- 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
- type Mock
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeleteWithHeaders ¶
DeleteWithHeaders performs an HTTP DELETE request with headers.
func GetWithHeaders ¶
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.