Skip to main content

Crate body

Crate body 

Source
Expand description

Policy-managed body lifecycle primitives.

body does not replace http-body or http-body-util. It defines protocol-independent policy and lifecycle vocabulary around payload bodies.

Structs§

BodyGuard
A body wrapped with explicit lifecycle policy.
BodyPolicy
Policy for how a body should be handled.

Enums§

BodyDecision
A protocol-independent decision produced by body policy.
BodyState
The lifecycle state of a body.
DrainPolicy
Whether a body may be drained after a decision has already been made.
DropPolicy
Behavior when a body is dropped before completion.
OverflowPolicy
Behavior when a body exceeds its configured size limit.
ReplayPolicy
Whether a body may be replayed after it has been read.
ShutdownPolicy
Behavior around graceful shutdown or cancellation boundaries.