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
}
func NewClient ¶
func NewClient(options ...ClientOption) *Client
NewClient returns a new http.Client with a default timeout.
type ClientOption ¶
type ClientOption func(*clientOptions)
A ClientOption is a functional option.
func WithClientTimeout ¶
func WithClientTimeout(timeout time.Duration) ClientOption
WithClientTimeout sets the client timeout.
func WithUserAgent ¶
func WithUserAgent(useragent string) ClientOption
WithUserAgent sets the client user-agent.
Click to show internal directories.
Click to hide internal directories.