ToYamlHTTPHeader converts the http header into yaml format
(httpHeader http.Header)
| 154 | |
| 155 | // ToYamlHTTPHeader converts the http header into yaml format |
| 156 | func 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, |
no outgoing calls
no test coverage detected