Skip to main content

Module body

Module body 

Source
Expand description

HTTP body abstraction for the OxiHTTP stack.

Provides a unified Body enum that supports empty bodies, full (in-memory) bodies, and streaming bodies. Implements http_body::Body for integration with hyper’s transport layer.

Structs§

FullBody
A full (in-memory) body.
StreamBody
A streaming body wrapping an async byte stream.

Enums§

Body
The body type for requests and responses in the OxiHTTP stack.
PinnedBody
A pinnable body type that implements http_body::Body.