Package fshttp contains the common http parts of the config, Transport and Client
NewClient returns an http.Client with the correct timeouts
NewDialer creates a net.Dialer structure with Timeout, Keepalive and LocalAddr set from rclone flags.
NewTransport returns an http.RoundTripper with the correct timeouts
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.
ResetTransport resets the existing transport, allowing it to take new settings. Should only be used for testing.
StartHTTPTokenBucket starts the token bucket if necessary
Transport is a our http Transport which wraps an http.Transport * Sets the User Agent * Does logging
RoundTrip implements the RoundTripper interface.
SetRequestFilter sets a filter to be used on each request