pub fn body_as_str(&self) -> &str {
        match std::str::from_utf8(&self.body) {
            Ok(msg) => msg,
            _ => "unknown error",
        }
    }
///! Best effort to turn response body into more readable &str.
Best effort to turn response body into more readable &str.
Best effort to turn response body into more readable &str .
pub fn body_as_str(&self) -> &str {
        match std::str::from_utf8(&self.body) {
            Ok(msg) => msg,
            _ => "unknown error",
        }
    }
pub fn body_as_str ( & self ) -> & str { match std :: str :: from_utf8 ( & self . body ) { Ok ( msg ) => msg , _ => " " , } }
Best effort to turn response body into more readable &str.
Best effort to turn response body into more readable &str .
&self