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