MCPcopy Create free account
hub / github.com/zalando/skipper / proxyFromContext

Function proxyFromContext

proxy/proxy.go:740–746  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

738}
739
740func proxyFromContext(req *http.Request) (*url.URL, error) {
741 proxyURL, _ := req.Context().Value(proxyUrlContextKey{}).(*url.URL)
742 if proxyURL != nil {
743 return proxyURL, nil
744 }
745 return nil, nil
746}
747
748type skipperDialer struct {
749 net.Dialer

Callers 2

TestForwardToProxyFunction · 0.85

Calls 1

ContextMethod · 0.80

Tested by 2

TestForwardToProxyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…