Documentation
¶
Overview ¶
Package httpx holds bounded body reads and a client with sane defaults.
Index ¶
Constants ¶
View Source
const ( // DefaultMaxBody caps an API response read into memory. DefaultMaxBody int64 = 32 << 20 // MaxDownload caps a file-style response (CSV export, deploy log) read into memory. MaxDownload int64 = 256 << 20 )
Variables ¶
View Source
var ErrBodyTooLarge = errors.New("httpx: response body exceeds limit")
ErrBodyTooLarge is returned when a body exceeds its read limit.
Functions ¶
func NewClient ¶
NewClient returns a client with an overall timeout and a transport that bounds dial, TLS handshake and header waits.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.