WithHeaderAdd returns a RequestOption that adds the header value to the associated key. It appends onto any existing values.
(key, value string)
| 120 | // WithHeaderAdd returns a RequestOption that adds the header value to the associated key. It appends |
| 121 | // onto any existing values. |
| 122 | func WithHeaderAdd(key, value string) RequestOption { |
| 123 | return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error { |
| 124 | r.AddHeader(key, value) |
| 125 | return nil |
| 126 | }) |
| 127 | } |
| 128 | |
| 129 | // WithHeaderDel returns a RequestOption that deletes the header value(s) associated with the given key. |
| 130 | func WithHeaderDel(key string) RequestOption { |
nothing calls this directly
no test coverage detected
searching dependent graphs…