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.

Implementations on Foreign Types

impl<'a, T: ?Sized + BodyEncode> BodyEncode for &'a mut T
[src]

[src]

impl<T: ?Sized + BodyEncode> BodyEncode for Box<T>
[src]

[src]

Implementors