Module body
Available on crate features
http and std only.Expand description
extra http body types and utilities.
Modules§
Structs§
- Body
- The body type used in rama requests and responses.
- Body
Data Stream - A stream of data frames.
- Body
Limit - Can be used to communicate the desire to limit the size of request/response bodies.
- 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. - Frame
- A frame of any kind related to an HTTP stream (body).
- Guarded
Body - A
StreamingBodywrapper that owns an opaqueguardand releases it when the body is fully consumed on the wire (StreamingBody::poll_framereturnsPoll::Ready(None)), or on drop if the body is abandoned early. - Infinite
Reader - A(n) (in)finite random byte stream implementing [
AsyncRead]. - OnDrop
Body - A
StreamingBodywrapper that calls a closure when dropped before the body is fully consumed. - Optional
Body - An optional
StreamingBody. - Size
Hint - A
Bodysize hint - ZipBomb
- A minimal in-memory ZIP archive that acts as a decompression or resource exhaustion trap.
Enums§
- Collect
Error Kind - Why a
CollectErroroccurred.
Traits§
- Body
Extract Ext - An extension trait for
StreamingBodythat provides methods to extract data from it. - Streaming
Body - Trait representing a streaming body of a Request or Response.