Documentation ¶
Index ¶
- func DefaultHttpRequestProvider(method, url string, body io.Reader) (*http.Request, error)
- func RemoveHeader(reqHeaders http.Header, headerToRemove string)
- func RequestLogger(label string, h http.Handler) http.Handler
- func SetHeaders(reqHeaders http.Header, customHeaders *map[string][]string)
- func SetQueryParameters(url *url.URL, queryParameters *map[string][]string)
- type HttpClient
- type HttpClientProvider
- type HttpRequestProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveHeader ¶
RemoveHeader modifies request headers removing headerToRemove entry
func SetHeaders ¶
SetHeaders modifies request headers setting additional entries from customHeaders
Types ¶
type HttpClient ¶
func DefaultHttpClientProvider ¶
func DefaultHttpClientProvider() HttpClient
type HttpClientProvider ¶
type HttpClientProvider func() HttpClient
Click to show internal directories.
Click to hide internal directories.