Skip to main content

with_payload_capture

Function with_payload_capture 

Source
pub async fn with_payload_capture<T>(future: impl Future<Output = T>) -> T
Expand description

Enables raw HTTP body events while polling future on the current task.

The host must install a subscriber for switchyard.payload and apply its own filtering, size limits, and redaction. Spawned tasks do not inherit capture.