pub async fn make_request_error_body<T: Serialize + Debug>(
        &self,
        method: Method,
        path: &str,
        body: T,
        expected_status: StatusCode,
    ) -> HttpErrorResponseBody {
        self.make_request(method, path, Some(body), expected_status)
            .await
            .unwrap_err()
    }
/**
     * Fetches a resource for which we expect to get an error response.
     * TODO-cleanup the make_request_error* interfaces are slightly different
     * than the non-error ones (and probably a bit more ergonomic).
     */
Fetches a resource for which we expect to get an error response.
TODO-cleanup the make_request_error* interfaces are slightly different
than the non-error ones (and probably a bit more ergonomic).
Fetches a resource for which we expect to get an error response . TODO - cleanup the make_request_error * interfaces are slightly different than the non - error ones ( and probably a bit more ergonomic ) .
pub async fn make_request_error_body<T: Serialize + Debug>(
        &self,
        method: Method,
        path: &str,
        body: T,
        expected_status: StatusCode,
    ) -> HttpErrorResponseBody {
        self.make_request(method, path, Some(body), expected_status)
            .await
            .unwrap_err()
    }
pub async fn make_request_error_body < T : Serialize + Debug > ( & self , method : Method , path : & str , body : T , expected_status : StatusCode , ) -> HttpErrorResponseBody { self . make_request ( method , path , Some ( body ) , expected_status ) . await . unwrap_err ( ) }
Fetches a resource for which we expect to get an error response.
Fetches a resource for which we expect to get an error response .
&self
method
Method
path
&str
body
T
expected_status
StatusCode
&self
method
Method
path
&str
body
T
expected_status
StatusCode