MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cloneDefaultTransport

Function cloneDefaultTransport

sdk/proxyutil/proxy.go:74–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func cloneDefaultTransport() *http.Transport {
75 if transport, ok := http.DefaultTransport.(*http.Transport); ok && transport != nil {
76 return transport.Clone()
77 }
78 return &http.Transport{}
79}
80
81// NewDirectTransport returns a transport that bypasses environment proxies.
82func NewDirectTransport() *http.Transport {

Callers 2

NewDirectTransportFunction · 0.85
BuildHTTPTransportFunction · 0.85

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected