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.
- Buffered
Body Capture - A capture sink that retains body data and trailers in memory.
- Capture
Body - A body that asynchronously sends an owned copy of each frame to a sink.
- Capture
Canceled - Returned if a buffered capture producer disappears without finalizing.
- Capture
Handle - An exactly-once completion handle for a
BufferedBodyCapture. - Capture
Limit - Maximum number of body bytes retained by a
BufferedBodyCapture. - Captured
Body - The final output produced by
BufferedBodyCapture. - 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§
- Body
Capture Event - An owned event emitted while a body streams.
- Capture
Outcome - How an observed body stream terminated.
- Collect
Error Kind - Why a
CollectErroroccurred.
Traits§
- Body
Capture Sink - Asynchronously observes owned body events.
- 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.