Documentation ¶
Index ¶
- func New(opts ...Option) (*http.Client, error)
- type Option
- func WithBackoffOpts(opts ...backoff.Option) Option
- func WithDialContext(dx func(ctx context.Context, network, addr string) (net.Conn, error)) Option
- func WithEnableCompression(enable bool) Option
- func WithEnableKeepAlives(enable bool) Option
- func WithExpectContinueTimeout(dur string) Option
- func WithForceAttemptHTTP2(force bool) Option
- func WithIdleConnTimeout(dur string) Option
- func WithMaxConnsPerHost(cn int) Option
- func WithMaxIdleConns(cn int) Option
- func WithMaxIdleConnsPerHost(cn int) Option
- func WithMaxResponseHeaderBytes(bs int64) Option
- func WithProxy(px func(*http.Request) (*url.URL, error)) Option
- func WithProxyConnectHeader(header http.Header) Option
- func WithReadBufferSize(bs int64) Option
- func WithResponseHeaderTimeout(dur string) Option
- func WithTLSHandshakeTimeout(dur string) Option
- func WithWriteBufferSize(bs int64) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*transport) error
func WithBackoffOpts ¶
func WithDialContext ¶
func WithEnableCompression ¶
func WithEnableKeepAlives ¶
func WithForceAttemptHTTP2 ¶
func WithIdleConnTimeout ¶
func WithMaxConnsPerHost ¶
func WithMaxIdleConns ¶
func WithMaxIdleConnsPerHost ¶
func WithProxyConnectHeader ¶
func WithReadBufferSize ¶
func WithTLSHandshakeTimeout ¶
func WithWriteBufferSize ¶
Click to show internal directories.
Click to hide internal directories.