Trait httpcodec::BodyDecode
[−]
[src]
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.
Implementors
impl BodyDecode for NoBodyDecoder
impl<D: Decode> BodyDecode for BodyDecoder<D>