()
| 143 | } |
| 144 | |
| 145 | fn method_not_allowed() -> Result<Response<Body>, crate::ServiceError> { |
| 146 | Ok(Response::builder() |
| 147 | .status(StatusCode::METHOD_NOT_ALLOWED) |
| 148 | .body(Body::empty()) |
| 149 | .expect("Unable to create Method Not Allowed response")) |
| 150 | } |
| 151 | |
| 152 | pub struct Service<T, C> |
| 153 | where |