Trait httpcodec::BodyEncode [] [src]

pub trait BodyEncode: Encode {
    fn update_header(&self, header: &mut HeaderMut) -> Result<()> { ... }
}

BodyEncode is used for representing HTTP body encoders.

Provided Methods

This method is called before starting to encode a HTTP body.

It is used for adjusting HTTP header by using the encoder specific information.

The default implementation does nothing.

Implementors