Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Do sends an HTTP request and returns an HTTP response, following // policy (such as redirects, cookies, auth) Do(*http.Request) (*http.Response, error) // CloseIdleConnections closes any connections on its Transport which // were previously connected from previous requests but are now // sitting idle in a "keep-alive" state. It does not interrupt any // connections currently in use. CloseIdleConnections() }
Client is an HTTP client
type Config ¶
type Config struct { Transport *transport.Config `json:"transport,omitempty"` Timeout *json.Duration `json:"timeout,omitempty"` }
Config for creating an HTTP Client
func (*Config) SetDefault ¶
type Decorator ¶
Decorator decorates a Client
func CombineDecorators ¶
func WithModifier ¶
func WithPreparer ¶
func WithRequest ¶
Click to show internal directories.
Click to hide internal directories.