(body: B)
| 29 | type BoxBody = http_body_util::combinators::UnsyncBoxBody<Bytes, Error>; |
| 30 | |
| 31 | fn boxed<B>(body: B) -> BoxBody |
| 32 | where |
| 33 | B: http_body::Body<Data = Bytes> + Send + 'static, |
| 34 | B::Error: Into<BoxError>, |
| 35 | { |
| 36 | try_downcast(body).unwrap_or_else(|body| body.map_err(Error::new).boxed_unsync()) |
| 37 | } |
| 38 | |
| 39 | pub(crate) fn try_downcast<T, K>(k: K) -> Result<T, K> |
| 40 | where |
no test coverage detected