(_request: Request<Body>)
| 134 | } |
| 135 | |
| 136 | async fn http_body_fail(_request: Request<Body>) -> Result<Response<Body>> { |
| 137 | let body = StreamBody::new(once_future(async move { |
| 138 | Err::<Frame<Bytes>, _>(anyhow::anyhow!("error creating body")) |
| 139 | })); |
| 140 | |
| 141 | Ok(Response::new(Body::from_http_body(body))) |
| 142 | } |
| 143 | |
| 144 | async fn http_not_found(_request: Request<Body>) -> Result<Response<Body>> { |
| 145 | let response = Response::builder() |