Method
remove_header
(&mut self, index: usize, cx: &mut Context<Self>)
Source from the content-addressed store, hash-verified
| 207 | } |
| 208 | |
| 209 | pub fn remove_header(&mut self, index: usize, cx: &mut Context<Self>) { |
| 210 | if index < self.data.headers.len() { |
| 211 | self.data.headers.remove(index); |
| 212 | cx.emit(RequestEvent::HeadersChanged); |
| 213 | cx.notify(); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | pub fn clear_headers(&mut self, cx: &mut Context<Self>) { |
| 218 | self.data.headers.clear(); |
Callers
nothing calls this directly
Tested by
no test coverage detected