Function actix_test::status_service

pub fn status_service(
    status_code: StatusCode
) -> impl Service<ServiceRequest, Response = ServiceResponse, Error = Error>
Expand description

Creates service that always responds with given status code and no body.