MCPcopy
hub / github.com/cortesi/devd / copyHeader

Function copyHeader

reverseproxy/reverseproxy.go:98–104  ·  view source on GitHub ↗
(dst, src http.Header)

Source from the content-addressed store, hash-verified

96}
97
98func copyHeader(dst, src http.Header) {
99 for k, vv := range src {
100 for _, v := range vv {
101 dst.Add(k, v)
102 }
103 }
104}
105
106// Hop-by-hop headers. These are removed when sent to the backend.
107// http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

Callers 1

ServeHTTPContextMethod · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected