Trait ntex::http::body::MessageBody[][src]

pub trait MessageBody {
    fn size(&self) -> BodySize;
fn poll_next_chunk(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>; }
Expand description

Type that provides this trait can be streamed to a peer.

Required methods

Implementations on Foreign Types

Implementors