MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / DefaultHTTPTransport

Function DefaultHTTPTransport

base/util.go:1165–1169  ·  view source on GitHub ↗

DefaultHTTPTransport returns a new HTTP Transport that copies values from http.DefaultTransport

()

Source from the content-addressed store, hash-verified

1163
1164// DefaultHTTPTransport returns a new HTTP Transport that copies values from http.DefaultTransport
1165func DefaultHTTPTransport() *http.Transport {
1166 // This type assertion will panic if http.DefaultTransport ever changes to not be a http.Transport
1167 // We'll catch this in development/unit testing pretty quickly if it does happen.
1168 return http.DefaultTransport.(*http.Transport).Clone()
1169}
1170
1171// IsFleeceDeltaError returns true if the given error originates from go-fleecedelta.
1172func IsFleeceDeltaError(err error) bool { return errors.As(err, &FleeceDeltaError{}) }

Callers 4

NewWebhookFunction · 0.92
TestDefaultHTTPTransportFunction · 0.85
GetHttpClientFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDefaultHTTPTransportFunction · 0.68