Crate http_body_util

Source
Expand description

Utilities for http_body::Body.

BodyExt adds extensions to the common trait.

Empty and Full provide simple implementations.

Modulesยง

collected ๐Ÿ”’
combinators
Combinators for the Body trait.
either ๐Ÿ”’
empty ๐Ÿ”’
full ๐Ÿ”’
limited ๐Ÿ”’
stream ๐Ÿ”’
util ๐Ÿ”’

Structsยง

BodyDataStream
A data stream created from a Body.
BodyStream
A stream created from a Body.
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ยง

Either
Sum type with two cases: Left and Right, used if a body can be one of two distinct types.

Traitsยง

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