(&mut self, method: HttpMethod, cx: &mut Context<Self>)
| 189 | } |
| 190 | |
| 191 | pub fn set_method(&mut self, method: HttpMethod, cx: &mut Context<Self>) { |
| 192 | self.data.method = method; |
| 193 | cx.emit(RequestEvent::MethodChanged); |
| 194 | cx.notify(); |
| 195 | } |
| 196 | |
| 197 | pub fn set_body(&mut self, body: RequestBody, cx: &mut Context<Self>) { |
| 198 | self.data.body = body; |
nothing calls this directly
no outgoing calls
no test coverage detected