pub fn request_hook<F, Fut>( name: impl Into<String>, func: F, ) -> Arc<dyn LifecycleHook<Request<Body>, Response<Body>>>where F: Fn(Request<Body>) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<HookResult<Request<Body>, Response<Body>>, String>> + Send + 'static,
Create a request hook for the current target.