Expand description
Traits and structures to aid consuming and writing HTTP payloads.
“Body” and “payload” are used somewhat interchangeably in this documentation.
Structs
- 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 the body produced by a
MessageBody
implementation intoBytes
.