(req: http::Request<B>, f: F)
| 366 | } |
| 367 | |
| 368 | fn map_req_ext<B, F>(req: http::Request<B>, f: F) -> http::Request<B> |
| 369 | where |
| 370 | F: FnOnce(http::Extensions) -> http::Extensions, |
| 371 | { |
| 372 | let (mut parts, body) = req.into_parts(); |
| 373 | parts.extensions = (f)(parts.extensions); |
| 374 | |
| 375 | http::Request::from_parts(parts, body) |
| 376 | } |
| 377 | |
| 378 | impl<B> RequestExt for http::Request<B> { |
| 379 | fn raw_http_path(&self) -> &str { |
no test coverage detected