Skip to main content

Module util

Module util 

Available on crate features http and std only.

Modules§

channel
A body backed by a channel.
combinators
Combinators for the Body trait.

Structs§

BodyDataStream
A data stream created from a Body.
BodyStream
A stream created from a Body.
Channel
A body backed by a channel.
CollectError
Error returned by BodyExt::collect and BodyExt::collect_with when a body could not be fully buffered.
CollectOptions
Options for BodyExt::collect_with: an optional size cap and/or timeout.
CollectWith
Future returned by BodyExt::collect_with.
Collected
A collected body produced by BodyExt::collect which collects all the DATA frames and trailers.
Empty
A body that is always empty.
Full
A body that consists of a single chunk.
LengthLimitError
An error returned when body length exceeds the configured limit.
Limited
A length limited body.
StreamBody
A body created from a Stream.

Enums§

CollectErrorKind
Why a CollectError occurred.
Either
A type to allow you to use multiple types as a single type.

Traits§

BodyExt
An extension trait for crate::body::http_body::Body adding various combinators and adapters