MCPcopy
hub / github.com/keploy/keploy / URLParams

Function URLParams

pkg/util.go:144–153  ·  view source on GitHub ↗

URLParams returns the Url and Query parameters from the request url.

(r *http.Request)

Source from the content-addressed store, hash-verified

142
143// URLParams returns the Url and Query parameters from the request url.
144func URLParams(r *http.Request) map[string]string {
145 qp := r.URL.Query()
146 result := make(map[string]string)
147
148 for key, values := range qp {
149 result[key] = strings.Join(values, ", ")
150 }
151
152 return result
153}
154
155// ToYamlHTTPHeader converts the http header into yaml format
156func ToYamlHTTPHeader(httpHeader http.Header) map[string]string {

Callers 3

parseFinalHTTPMethod · 0.92
buildHTTPMockMethod · 0.92
CaptureFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected