Skip to main content

Module prepared

Module prepared 

Source
Expand description

The output of Channel::prepare.

Enums§

PreparedRequest
The output of Channel::prepare: either a single direct upstream request (the common case — the pipeline sends it once), or a channel-driven multi-step exchange (CustomSend).

Type Aliases§

CustomSend
A channel-driven multi-step upstream exchange. The pipeline injects the resolved (proxy, emulation) client; the closure performs whatever sequence of calls it needs and returns the finished, buffered response. The closure owns whatever else it needs (secret, inbound body) by move. Each call made through the injected client is logged (§8-D) by the pipeline’s capturing wrapper, so the channel never resolves a proxy/client itself or persists anything.
CustomStreamSend
A channel-driven multi-step exchange that returns a STREAMING body (native only). Like CustomSend but yields (status, headers, stream) so a long-running exchange streams the response incrementally instead of buffering the whole thing.