Skip to main content

before

Function before 

Source
pub fn before<F, Fut>(name: impl Into<String>, f: F) -> MwEntry
where F: Fn(Request) -> Fut + Send + Sync + 'static, Fut: Future<Output = Request> + Send + 'static,
Expand description

Run f on the request before the rest of the chain.