MCPcopy
hub / github.com/rclone/rclone / NewClient

Function NewClient

fs/fshttp/http.go:306–308  ·  view source on GitHub ↗

NewClient returns an http.Client with the correct timeouts

(ctx context.Context)

Source from the content-addressed store, hash-verified

304
305// NewClient returns an http.Client with the correct timeouts
306func NewClient(ctx context.Context) *http.Client {
307 return NewClientCustom(ctx, nil)
308}
309
310// NewClientCustom returns an http.Client with the correct timeouts.
311// It allows customizing the transport, using NewTransportCustom.

Callers 15

NewFsFunction · 0.92
qsServiceConnectionFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
httpConnectionMethod · 0.92
NewFsFunction · 0.92
getServiceAccountClientFunction · 0.92
NewFsFunction · 0.92
NewFsFunction · 0.92
reLoginMethod · 0.92

Calls 1

NewClientCustomFunction · 0.85

Tested by 1

TestCertificatesFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…