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

Method roundTripperFor

sdk/cliproxy/auth/conductor.go:5616–5624  ·  view source on GitHub ↗

roundTripperFor retrieves an HTTP RoundTripper for the given auth if a provider is registered.

(auth *Auth)

Source from the content-addressed store, hash-verified

5614
5615// roundTripperFor retrieves an HTTP RoundTripper for the given auth if a provider is registered.
5616func (m *Manager) roundTripperFor(auth *Auth) http.RoundTripper {
5617 m.mu.RLock()
5618 p := m.rtProvider
5619 m.mu.RUnlock()
5620 if p == nil || auth == nil {
5621 return nil
5622 }
5623 return p.RoundTripperFor(auth)
5624}
5625
5626// RoundTripperProvider defines a minimal provider of per-auth HTTP transports.
5627type RoundTripperProvider interface {

Calls 1

RoundTripperForMethod · 0.65

Tested by

no test coverage detected