[][src]Trait httpcodec::BodyDecode

pub trait BodyDecode: Decode {
    fn initialize(&mut self, header: &Header) -> Result<()> { ... }
}

BodyDecode is used for representing HTTP body decoders.

Provided methods

fn initialize(&mut self, header: &Header) -> Result<()>

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

The default implementation does nothing.

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

impl BodyDecode for NoBodyDecoder[src]

impl<D: Decode> BodyDecode for BodyDecoder<D>[src]

Loading content...