MCPcopy Create free account
hub / github.com/prometheus/common / Headers

Struct Headers

config/headers.go:53–55  ·  view source on GitHub ↗

Headers represents the configuration for HTTP headers.

Source from the content-addressed store, hash-verified

51
52// Headers represents the configuration for HTTP headers.
53type Headers struct {
54 Headers map[string]Header `yaml:",inline"`
55}
56
57func (h Headers) MarshalJSON() ([]byte, error) {
58 // Inline the Headers map when serializing JSON because json encoder doesn't support "inline" directive.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected