Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a wrapped HTTP client.
func NewClient ¶
func NewClient(cfg ClientConfig) *Client
NewClient returns an initialized Client given the provided configuration.
func (*Client) NewRequest ¶
NewRequest returns an *http.Request given the provided configuration.
type ClientConfig ¶
type ClientConfig struct {
DNSServer *url.URL
HTTP core.HTTPVersion
Insecure bool
Proxy *url.URL
Redirects *int
TLS uint16
}
ClientConfig represents the optional configuration parameters for a Client.
type RequestConfig ¶
type RequestConfig struct {
AWSSigV4 *aws.Config
Basic *core.KeyVal
Bearer string
Body io.Reader
Form []core.KeyVal
Headers []core.KeyVal
HTTP core.HTTPVersion
JSON bool
Method string
Multipart *multipart.Multipart
NoEncode bool
QueryParams []core.KeyVal
URL *url.URL
XML bool
}
RequestConfig represents the configuration for creating an HTTP request.
Click to show internal directories.
Click to hide internal directories.