Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultDialTimeout when connecting to a backend server. DefaultDialTimeout = 30 * time.Second // DefaultIdleConnsPerHost the default value set for http.Transport.MaxIdleConnsPerHost. DefaultIdleConnsPerHost = 64 // DefaultIdleConnTimeout is the default value for the the maximum amount of time an idle // (keep-alive) connection will remain idle before closing itself. DefaultIdleConnTimeout = 90 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*transport)
Option represents the transport options
func WithDialTimeout ¶
WithDialTimeout sets the dial context timeout
func WithIdleConnTimeout ¶
WithIdleConnTimeout sets the maximum amount of time an idle (keep-alive) connection will remain idle before closing itself.
func WithInsecureSkipVerify ¶
WithInsecureSkipVerify sets tls config insecure skip verify
func WithResponseHeaderTimeout ¶
WithResponseHeaderTimeout sets the response header timeout
Click to show internal directories.
Click to hide internal directories.