Expand description
Traits and structures to aid consuming and writing HTTP payloads.
“Body” and “payload” are used somewhat interchangeably in this documentation.
Structs§
- Error type returned from
to_bytes_limited
when body produced exceeds limit. - Streaming response wrapper.
- A boxed message body with boxed errors.
- Body type for responses that forbid payloads.
- Known sized streaming response wrapper.
Enums§
- Body size hint.
- An “either” type specialized for body types.
Traits§
- An interface for types that can be used as a response body.
Functions§
- Collects all the bytes produced by
body
. - Collects the bytes produced by
body
, up tolimit
bytes.