pub fn json_notify<N: extractor::Notifier, J: serde::de::DeserializeOwned>(&mut self, notify: N) -> impl Future<Output=Result<J, extractor::BodyReadError>> {
        let (encoding, buffer_size, body) = self.extract_body();

        #[cfg(feature = "encoding")]
        {
            let charset = self.charset_encoding().unwrap_or(encoding_rs::UTF_8);
            extractor::json_charset_notify(body, encoding, buffer_size, charset, notify)
        }

        #[cfg(not(feature = "encoding"))]
        {
            extractor::json_notify(body, encoding, buffer_size, notify)
        }
    }
///Extracts Response's body as JSON
Extracts Response's body as JSON
Extracts Response ' s body as JSON
pub fn json_notify<N: extractor::Notifier, J: serde::de::DeserializeOwned>(&mut self, notify: N) -> impl Future<Output=Result<J, extractor::BodyReadError>> {
        let (encoding, buffer_size, body) = self.extract_body();
        #[cfg(feature = "encoding")]
        {
            let charset = self.charset_encoding().unwrap_or(encoding_rs::UTF_8);
            extractor::json_charset_notify(body, encoding, buffer_size, charset, notify)
        }
        #[cfg(not(feature = "encoding"))]
        {
            extractor::json_notify(body, encoding, buffer_size, notify)
        }
    }
pub fn json_notify < N : extractor :: Notifier , J : serde :: de :: DeserializeOwned > ( & mut self , notify : N ) -> impl Future < Output = Result < J , extractor :: BodyReadError > > { let ( encoding , buffer_size , body ) = self . extract_body ( ) ; # [ cfg ( feature " " ) ] { let charset = self . charset_encoding ( ) . unwrap_or ( encoding_rs :: UTF_8 ) ; extractor :: json_charset_notify ( body , encoding , buffer_size , charset , notify ) } # [ cfg ( not ( feature " " ) ) ] { extractor :: json_notify ( body , encoding , buffer_size , notify ) } }
Extracts Response's body as JSON
Extracts Response ' s body as JSON
&mut self
notify
N