Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DumpTransport ¶
type DumpTransport struct {
// contains filtered or unexported fields
}
DumpTransport is http.RoundTripper that dumps requests and responses.
type Opt ¶
type Opt func(*options)
Opt configures HTTP request options.
func WithAuthToken ¶
WithAuthToken specifies an authorization token.
func WithHTTPClient ¶
WithHTTPClient specifies the custom HTTP client.
func WithMethod ¶
WithMethod specifies an HTTP method. Default is GET.
func WithParsedResponse ¶
func WithParsedResponse(r interface{}) Opt
WithParsedResponse specifies type to unmarshal response body.
func WithSigner ¶
func WithSigner(signer requestSigner) Opt
WithSigner specifies a request signer for HTTP Signatures.
Click to show internal directories.
Click to hide internal directories.