MCPcopy Index your code
hub / github.com/keploy/keploy / ToYamlHTTPHeader

Function ToYamlHTTPHeader

pkg/util.go:156–162  ·  view source on GitHub ↗

ToYamlHTTPHeader converts the http header into yaml format

(httpHeader http.Header)

Source from the content-addressed store, hash-verified

154
155// ToYamlHTTPHeader converts the http header into yaml format
156func ToYamlHTTPHeader(httpHeader http.Header) map[string]string {
157 header := map[string]string{}
158 for i, j := range httpHeader {
159 header[i] = strings.Join(j, ",")
160 }
161 return header
162}
163
164// CompareMultiValueHeaders compares a mock header value (as a comma-separated string)
165// with an input header value (as a slice of strings). It normalizes whitespace,

Callers 6

parseFinalHTTPMethod · 0.92
buildHTTPMockMethod · 0.92
CaptureFunction · 0.92
SimulateHTTPFunction · 0.85
SimulateHTTPStreamingFunction · 0.85
MakeCurlCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected