Skip to main content

OnRequest

Type Alias OnRequest 

Source
pub type OnRequest = Arc<dyn Fn(&Method, &Url, &HeaderMap) + Send + Sync>;
Expand description

Request-inspection callback. Fires right before send().

Used by the integration harness to record the outgoing method/URL/headers without wrapping the reqwest::Client in a middleware layer.

Aliased Typeยง

pub struct OnRequest { /* private fields */ }