(&mut self, cx: &mut Context<Self>)
| 215 | } |
| 216 | |
| 217 | pub fn clear_headers(&mut self, cx: &mut Context<Self>) { |
| 218 | self.data.headers.clear(); |
| 219 | cx.emit(RequestEvent::HeadersChanged); |
| 220 | cx.notify(); |
| 221 | } |
| 222 | |
| 223 | pub fn set_headers(&mut self, headers: Vec<Header>, cx: &mut Context<Self>) { |
| 224 | self.data.headers = headers; |
no test coverage detected