Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTP_2xx = 2 HTTP_4xx = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrInvalid ¶ added in v0.8.0
type ErrInvalid struct {
Err
}
type ErrNetwork ¶ added in v0.8.0
type ErrNetwork struct {
Err
}
type ErrNotFound ¶ added in v0.8.0
type ErrNotFound struct {
Err
}
type ErrTimeout ¶ added in v0.8.0
type ErrTimeout struct {
Err
}
type HttpClient ¶
type HttpClient struct { // Initial backoff duration. Defaults to 50 milliseconds InitialBackoff time.Duration // Maximum exp backoff duration. Defaults to 5 seconds MaxBackoff time.Duration // Maximum number of connection retries. Defaults to 15 MaxRetries int // Whether or not to skip TLS verification. Defaults to false SkipTLS bool // contains filtered or unexported fields }
func NewHttpClient ¶
func NewHttpClient() *HttpClient
Click to show internal directories.
Click to hide internal directories.