MCPcopy
hub / github.com/grafana/tempo / copyHeader

Function copyHeader

modules/frontend/handler.go:147–153  ·  view source on GitHub ↗
(dst, src http.Header)

Source from the content-addressed store, hash-verified

145}
146
147func copyHeader(dst, src http.Header) {
148 for k, vv := range src {
149 for _, v := range vv {
150 dst.Add(k, v)
151 }
152 }
153}
154
155// writeError handles writing errors to the http.ResponseWriter. It uses dskit's
156// httpgrpc.WriteError() to handle httpgrc errors. The handler handles all incoming HTTP requests

Callers 1

ServeHTTPMethod · 0.85

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected