Function ntex::web::test::default_service [−][src]
pub fn default_service<Err: ErrorRenderer>(
status_code: StatusCode
) -> impl Service<WebRequest<Err>, Response = WebResponse, Error = Infallible>
Expand description
Create service that responds with response with specified status code