Type Definition body_image_futio::SplitBodyImage[][src]

pub type SplitBodyImage<B> = YieldStream<Cleaver<B, Error, AsyncBodyImage<B>>, Result<B, Error>>;
Expand description

Extends AsyncBodyImage by splitting buffers and yielding.

Extends AsyncBodyImage by splitting stream item buffers to a maximum FutioTunables::stream_item_size and yielding after each each item. This may be effective when the underlying AsyncBodyImage contains a vary large contiguous memory region, e.g. after it was gathered or memory mapped, which could cause a large delay when subsequently processed.

Trait Implementations

Wrap by consuming the BodyImage instance. Read more