Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MagnetTransport = &MagnetRoundTripper{}
View Source
var ProxyTransport = &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, MaxIdleConnsPerHost: 10, IdleConnTimeout: 90 * time.Second, ResponseHeaderTimeout: 120 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, ReadBufferSize: 65536, WriteBufferSize: 65536, TLSClientConfig: &tls.Config{ MinVersion: tls.VersionTLS12, }, }
View Source
var Transport = &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, MaxIdleConnsPerHost: 10, IdleConnTimeout: 90 * time.Second, ResponseHeaderTimeout: 120 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, ReadBufferSize: 65536, WriteBufferSize: 65536, TLSClientConfig: &tls.Config{ MinVersion: tls.VersionTLS12, }, }
View Source
var TransportTLSInsecure = &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, MaxIdleConnsPerHost: 10, IdleConnTimeout: 90 * time.Second, ResponseHeaderTimeout: 120 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, ReadBufferSize: 65536, WriteBufferSize: 65536, TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, }, }
Functions ¶
This section is empty.
Types ¶
type MagnetRoundTripper ¶
type MagnetRoundTripper struct{}
Click to show internal directories.
Click to hide internal directories.