Skip to main content

CustomStreamSend

Type Alias CustomStreamSend 

Source
pub type CustomStreamSend = Box<dyn FnOnce(Arc<dyn UpstreamClient>) -> Pin<Box<dyn Future<Output = Result<(StatusCode, HeaderMap, RespStream), ClientError>> + Send>> + Send>;
Expand description

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.

Aliased Typeยง

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