pub fn text(&self) -> Result<String, HttpError> {
        let encoding = self.character_encoding()?;
        let body = &self.uncompress_body()?;
        match encoding.decode(body, DecoderTrap::Strict) {
            Ok(s) => Ok(s),
            Err(_) => Err(HttpError::InvalidDecoding {
                charset: encoding.name().to_string(),
            }),
        }
    }
/// Returns response body as text.
Returns response body as text.
Returns response body as text .
pub fn text(&self) -> Result<String, HttpError> {
        let encoding = self.character_encoding()?;
        let body = &self.uncompress_body()?;
        match encoding.decode(body, DecoderTrap::Strict) {
            Ok(s) => Ok(s),
            Err(_) => Err(HttpError::InvalidDecoding {
                charset: encoding.name().to_string(),
            }),
        }
    }
pub fn text ( & self ) -> Result < String , HttpError > { let encoding = self . character_encoding ( ) ? ; let body = & self . uncompress_body ( ) ? ; match encoding . decode ( body , DecoderTrap :: Strict ) { Ok ( s ) => Ok ( s ) , Err ( _ ) => Err ( HttpError :: InvalidDecoding { charset : encoding . name ( ) . to_string ( ) , } ) , } }
Returns response body as text.
Returns response body as text .
&self