MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / NewHeaderForwardingClient

Function NewHeaderForwardingClient

examples/server/proxy/main.go:45–49  ·  view source on GitHub ↗

NewHeaderForwardingClient creates a new http.Client that uses HeaderForwardingTransport.

()

Source from the content-addressed store, hash-verified

43
44// NewHeaderForwardingClient creates a new http.Client that uses HeaderForwardingTransport.
45func NewHeaderForwardingClient() *http.Client {
46 return &http.Client{
47 Transport: new(HeaderForwardingTransport),
48 }
49}
50
51// Backend Server: Echoes received headers to verify propagation.
52func runBackendServer() {

Callers 1

runProxyServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…