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

Method SetDirectory

config/headers.go:90–94  ·  view source on GitHub ↗

SetDirectory makes headers file relative to the configuration file.

(dir string)

Source from the content-addressed store, hash-verified

88
89// SetDirectory makes headers file relative to the configuration file.
90func (h *Header) SetDirectory(dir string) {
91 for i := range h.Files {
92 h.Files[i] = JoinDir(dir, h.Files[i])
93 }
94}
95
96// NewHeadersRoundTripper returns a RoundTripper that sets HTTP headers on
97// requests as configured.

Callers

nothing calls this directly

Calls 1

JoinDirFunction · 0.85

Tested by

no test coverage detected