Trait monoio_http::common::body::BodyEncodeExt
source · 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§
sourcefn decode_content(
self,
content_encoding: String
) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>
fn decode_content( self, content_encoding: String ) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>
Consumes body and returns decodec content
sourcefn encode_content(
self,
accept_encoding: String
) -> impl Future<Output = Result<Bytes, Self::EncodeDecodeError>>
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.