pub trait BodyEncodeExt: BodyExt {
    type EncodeDecodeError;

    // Required methods
    fn decode_content(
        self,
        content_encoding: String
    ) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>;
    fn encode_content(
        self,
        accept_encoding: String
    ) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>;
}

Required Associated Types§

Required Methods§

source

fn decode_content( self, content_encoding: String ) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>

Consumes body and returns decodec content

source

fn encode_content( self, accept_encoding: String ) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>

Consumes body and returns encoded content

Object Safety§

This trait is not object safe.

Implementors§