WithHeaders sets the headers for the HTTP request.
(headers map[string]string)
| 58 | |
| 59 | // WithHeaders sets the headers for the HTTP request. |
| 60 | func WithHeaders(headers map[string]string) FetchOption { |
| 61 | return func(o *FetchOptions) { |
| 62 | o.Request.Headers = headers |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // WithExpectedStatusCodes sets the expected status codes for the HTTP response. |
| 67 | func WithExpectedStatusCodes(codes []int) FetchOption { |
no outgoing calls