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

Function applyHeaders

cmd/tempo-cli/shared.go:162–166  ·  view source on GitHub ↗
(client *httpclient.Client, headers []string)

Source from the content-addressed store, hash-verified

160}
161
162func applyHeaders(client *httpclient.Client, headers []string) {
163 for _, kv := range parseHeaders(headers) {
164 client.SetHeader(kv[0], kv[1])
165 }
166}
167
168func applyHeadersHTTP(req *http.Request, headers []string) {
169 for _, kv := range parseHeaders(headers) {

Callers 3

searchHTTPMethod · 0.85
RunMethod · 0.85
searchHTTPMethod · 0.85

Calls 2

parseHeadersFunction · 0.85
SetHeaderMethod · 0.45

Tested by

no test coverage detected