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

Function mapToValues

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

Source from the content-addressed store, hash-verified

810}
811
812func mapToValues(m map[string]string) url.Values {
813 v := url.Values{}
814 for name, value := range m {
815 v.Set(name, value)
816 }
817
818 return v
819}
820
821// cloneRequest returns a clone of the provided *http.Request.
822// The clone is a shallow copy of the struct and its Header map.

Callers 1

RoundTripMethod · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected