Documentation ¶
Overview ¶
Package httpclient is a set of utilities for creating and configuring instances of http.Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMaxAttemptsExceeded is returned when the maximum number of attempts is exceeded ErrMaxAttemptsExceeded = errors.New("maximum number of attempts exceeded") // ErrInvalidTransportType is returned when the transport type is invalid ErrInvalidTransportType = errors.New("invalid transport type") )
Functions ¶
Types ¶
type Option ¶
Option is a configuration option for building an http.Client
func CookieJar ¶
CookieJar installs a cookie jar into the client, configured with the options argument
func MaxRedirects ¶
MaxRedirects configures the max number of redirects the client will perform before giving up
func NoRedirects ¶
func NoRedirects() Option
NoRedirects configures the client to no perform any redirects
func SkipVerify ¶
SkipVerify sets the TLS config's InsecureSkipVerify flag.
type OptionFunc ¶
OptionFunc adapts a function to the Option interface
Click to show internal directories.
Click to hide internal directories.