(&mut self)
| 118 | } |
| 119 | |
| 120 | pub fn take_request(&mut self) -> WebRequest<B> |
| 121 | where |
| 122 | B: Default, |
| 123 | { |
| 124 | let head = mem::take(self.req_mut()); |
| 125 | let body = self.take_body_mut(); |
| 126 | head.map(|ext| ext.map_body(|_| body)) |
| 127 | } |
| 128 | |
| 129 | /// Transform self to a WebResponse with given body type. |
| 130 | /// |