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