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

Function applyHeadersHTTP

cmd/tempo-cli/shared.go:168–172  ·  view source on GitHub ↗
(req *http.Request, headers []string)

Source from the content-addressed store, hash-verified

166}
167
168func applyHeadersHTTP(req *http.Request, headers []string) {
169 for _, kv := range parseHeaders(headers) {
170 req.Header.Set(kv[0], kv[1])
171 }
172}
173
174func applyHeadersGRPC(ctx context.Context, headers []string) context.Context {
175 parsed := parseHeaders(headers)

Callers 4

TestApplyHeadersHTTPFunction · 0.85
searchHTTPMethod · 0.85
queryRangeHTTPMethod · 0.85
queryInstantHTTPMethod · 0.85

Calls 2

parseHeadersFunction · 0.85
SetMethod · 0.65

Tested by 1

TestApplyHeadersHTTPFunction · 0.68