Documentation ¶
Overview ¶
Package fshttp contains the common http parts of the config, Transport and Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDialer ¶
NewDialer creates a net.Dialer structure with Timeout, Keepalive and LocalAddr set from rclone flags.
func NewTransport ¶
func NewTransport(ctx context.Context) http.RoundTripper
NewTransport returns an http.RoundTripper with the correct timeouts
func NewTransportCustom ¶ added in v1.50.0
NewTransportCustom returns an http.RoundTripper with the correct timeouts. The customize function is called if set to give the caller an opportunity to customize any defaults in the Transport.
func ResetTransport ¶
func ResetTransport()
ResetTransport resets the existing transport, allowing it to take new settings. Should only be used for testing.
Types ¶
Click to show internal directories.
Click to hide internal directories.