MCPcopy
hub / github.com/yusing/godoxy / copyHeader

Function copyHeader

socket-proxy/pkg/reverseproxy/reverse_proxy.go:80–86  ·  view source on GitHub ↗
(dst, src http.Header)

Source from the content-addressed store, hash-verified

78}
79
80func copyHeader(dst, src http.Header) {
81 for k, vv := range src {
82 for _, v := range vv {
83 dst.Add(k, v)
84 }
85 }
86}
87
88// Hop-by-hop headers. These are removed when sent to the backend.
89// As of RFC 7230, hop-by-hop headers are required to appear in the

Callers 2

ServeHTTPMethod · 0.85
handleUpgradeResponseMethod · 0.85

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected