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

Function mapToValues

config/http_config.go:1138–1145  ·  view source on GitHub ↗
(m map[string]string)

Source from the content-addressed store, hash-verified

1136}
1137
1138func mapToValues(m map[string]string) url.Values {
1139 v := url.Values{}
1140 for name, value := range m {
1141 v.Set(name, value)
1142 }
1143
1144 return v
1145}
1146
1147// isCrossHostRedirect reports whether req is a redirect that has left the
1148// original request's host at any point in the chain. It detects this by walking

Callers 1

newOauth2TokenSourceMethod · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected