Add an extra header to send with each request.
(mut self, name: impl Into<String>, value: impl Into<String>)
| 128 | |
| 129 | /// Add an extra header to send with each request. |
| 130 | pub fn with_header(mut self, name: impl Into<String>, value: impl Into<String>) -> Self { |
| 131 | self.extra_headers.push((name.into(), value.into())); |
| 132 | self |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | // ============================================================================ |