OpenOptionAddHTTPHeaders Sets each header found in options to the http.Header map provided the key was non empty.
(headers http.Header, options []OpenOption)
| 333 | // OpenOptionAddHTTPHeaders Sets each header found in options to the |
| 334 | // http.Header map provided the key was non empty. |
| 335 | func OpenOptionAddHTTPHeaders(headers http.Header, options []OpenOption) { |
| 336 | for _, option := range options { |
| 337 | key, value := option.Header() |
| 338 | if key != "" && value != "" { |
| 339 | headers.Set(key, value) |
| 340 | } |
| 341 | } |
| 342 | } |
searching dependent graphs…