pub fn unpack_body<B>(&self) -> Result<B::Result, Error>
    where B: BodyDecoder,
  {
    match &self.body {
      Some(body) => B::unpack(body),
      None => Err(io::Error::new(
        io::ErrorKind::InvalidInput,
        "body is empty",
      ).into()),
    }
  }
/// allows you to parse response body.
allows you to parse response body.
allows you to parse response body .
pub fn unpack_body<B>(&self) -> Result<B::Result, Error>
    where B: BodyDecoder,
  {
    match &self.body {
      Some(body) => B::unpack(body),
      None => Err(io::Error::new(
        io::ErrorKind::InvalidInput,
        "body is empty",
      ).into()),
    }
  }
pub fn unpack_body < B > ( & self ) -> Result < B :: Result , Error > where B : BodyDecoder , { match & self . body { Some ( body ) => B :: unpack ( body ) , None => Err ( io :: Error :: new ( io :: ErrorKind :: InvalidInput , " " , ) . into ( ) ) , } }
allows you to parse response body.
allows you to parse response body .
&self
&self