async fn execute_request_check_status(
        &self,
        request: Request<Bytes>,
        _expected_status: StatusCode,
    ) -> crate::Result<Response<Bytes>> {
        let response = self.execute_request(request).await?;
        let status = response.status();
        if (200..400).contains(&status.as_u16()) {
            Ok(response)
        } else {
            let body = response.into_body();
            Err(ErrorKind::http_response_from_body(status.into(), &body).into())
        }
    }
/// Send out a request and validate it was in the `2xx` range, using
/// `hyperium/http`'s types.
///
/// Note: the `expected_status` parameter is never used, and instead we
/// always validate the status was in the `2xx` range. This method should
/// be considered deprecated, and should not be used in new code.
Send out a request and validate it was in the `2xx` range, using
`hyperium/http`'s types.

the `expected_status` parameter is never used, and instead we
always validate the status was in the `2xx` range. This method should
be considered deprecated, and should not be used in new code.
Send out a request and validate it was in the ` 2xx ` range using ` hyperium / http ` ' s types . the ` expected_status ` parameter is never used and instead we always validate the status was in the ` 2xx ` range . This method should be considered deprecated and should not be used in new code .
async fn execute_request_check_status(
        &self,
        request: Request<Bytes>,
        _expected_status: StatusCode,
    ) -> crate::Result<Response<Bytes>> {
        let response = self.execute_request(request).await?;
        let status = response.status();
        if (200..400).contains(&status.as_u16()) {
            Ok(response)
        } else {
            let body = response.into_body();
            Err(ErrorKind::http_response_from_body(status.into(), &body).into())
        }
    }
async fn execute_request_check_status ( & self , request : Request < Bytes > , _expected_status : StatusCode , ) -> crate :: Result < Response < Bytes > > { let response = self . execute_request ( request ) . await ? ; let status = response . status ( ) ; if ( 200 .. 400 ) . contains ( & status . as_u16 ( ) ) { Ok ( response ) } else { let body = response . into_body ( ) ; Err ( ErrorKind :: http_response_from_body ( status . into ( ) , & body ) . into ( ) ) } }
Send out a request and validate it was in the `2xx` range, using
`hyperium/http`'s types.
Send out a request and validate it was in the ` 2xx ` range using ` hyperium / http ` ' s types .
&self
request
Request<Bytes>
_expected_status
StatusCode