package
1.27.0
Repository: https://github.com/keboola/go-client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package trace extends the httptrace.ClientTrace and adds additional HTTPRequest hooks.

# Functions

No description provided by the author
DefaultRetry returns a default RetryConfig.
DefaultRetryCondition retries on common network and HTTP errors.
DefaultTransport is the default Client transport with reasonable limits.
HTTP2Transport forces HTTP2 protocol.
New creates new HTTP Client.
NewMockedClient creates the Client with mocked HTTP transport.
NewTestClient creates the Client for tests.
TestingRetry - fast retry for use in tests.

# Constants

No description provided by the author
No description provided by the author
DialTimeout specifies the default maximum connection initialization time.
HTTP2PingTimeout is the timeout after which the connection will be closed if a response to Ping is not received.
HTTP2ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out.
HTTP2WriteByteTimeout is the timeout after which the connection will be closed no data can be written to it.
KeepAlive specifies the default interval between keep-alive probes.
MaxConnectionsPerHost specifies the default maximum number of open connections to a host.
MaxIdleConnections specifies the default maximum number of open connections at all.
RequestTimeout - default request timeout.
ResponseHeaderTimeout specifies the default amount of time to wait for a server's response headers.
RetriesCount - default retries count.
No description provided by the author
RetryWaitTimeMax - default maximum retry interval.
RetryWaitTimeStart - default retry interval.
TLSHandshakeTimeout specifies the default timeout of TLS handshake.

# Structs

Client is a default and configurable implementation of the Sender interface by Go native http.Client.
RetryConfig configures Client retries.

# Type aliases

No description provided by the author
DurationSeconds is time.Duration encoded/decoded as number of seconds.
RetryCondition defines which responses should retry.