Documentation ¶
Overview ¶
Package client provides utilities to create easily new http.Client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option defines an option for a new *http.Client.
func WithProxy ¶
WithProxy receives a proxy's URL and returns an Option function that parses that URL and, if there is no errors, creates a new http.Transport configured that is applied to a new *http.Client.
func WithTimeout ¶
WithTimeout receives a timeout and returns an Option that applies it to a new *http.Client.
Click to show internal directories.
Click to hide internal directories.