Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTP_2xx = 2 HTTP_4xx = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct { // Maximum exp backoff duration. Defaults to 5 seconds MaxBackoff time.Duration // Maximum number of connection retries. Defaults to 15 MaxRetries int // HTTP client timeout, this is suggested to be low since exponential // backoff will kick off too. Defaults to 2 seconds Timeout time.Duration // Whether or not to skip TLS verification. Defaults to false SkipTLS bool }
func NewHttpClient ¶
func NewHttpClient() *HttpClient
Click to show internal directories.
Click to hide internal directories.