Skip to main content

CustomSend

Type Alias CustomSend 

Source
pub type CustomSend = Box<dyn FnOnce(Arc<dyn UpstreamClient>) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ClientError>> + Send>> + Send>;
Expand description

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.

Aliased Type§

pub struct CustomSend(/* private fields */);