Module util
Available on crate features
http and std only.Modules§
- channel
- A body backed by a channel.
- combinators
- Combinators for the
Bodytrait.
Structs§
- Body
Data Stream - A data stream created from a
Body. - Body
Stream - A stream created from a
Body. - Channel
- A body backed by a channel.
- Collect
Error - Error returned by
BodyExt::collectandBodyExt::collect_withwhen a body could not be fully buffered. - Collect
Options - Options for
BodyExt::collect_with: an optional size cap and/or timeout. - Collect
With - Future returned by
BodyExt::collect_with. - Collected
- A collected body produced by
BodyExt::collectwhich collects all the DATA frames and trailers. - Empty
- A body that is always empty.
- Full
- A body that consists of a single chunk.
- Length
Limit Error - An error returned when body length exceeds the configured limit.
- Limited
- A length limited body.
- Stream
Body - A body created from a
Stream.
Enums§
- Collect
Error Kind - Why a
CollectErroroccurred. - Either
- A type to allow you to use multiple types as a single type.
Traits§
- BodyExt
- An extension trait for
crate::body::http_body::Bodyadding various combinators and adapters