pub fn check_response(&self, result: Result<Response, reqwest::Error>) -> Response {
        match result {
            Ok(response) => response,
            Err(ref error) => {
                self.output_error(error);
                unreachable!()
            }
        }
    }
/// Gets the response from a sent request and checks to ensure it was successful.
Gets the response from a sent request and checks to ensure it was successful.
Gets the response from a sent request and checks to ensure it was successful .
pub fn check_response(&self, result: Result<Response, reqwest::Error>) -> Response {
        match result {
            Ok(response) => response,
            Err(ref error) => {
                self.output_error(error);
                unreachable!()
            }
        }
    }
pub fn check_response ( & self , result : Result < Response , reqwest :: Error > ) -> Response { match result { Ok ( response ) => response , Err ( ref error ) => { self . output_error ( error ) ; unreachable ! ( ) } } }
Gets the response from a sent request and checks to ensure it was successful.
Gets the response from a sent request and checks to ensure it was successful .
&self
result
Result<Response, reqwest::Error>
&self
result
Result<Response, reqwest::Error>