Function webhook_flows::route::head
source · pub fn head<T>(
f: fn(_: Vec<(String, String)>, _: HashMap<String, Value>, _: Vec<u8>) -> T
) -> (Method, Box<dyn Fn(Vec<(String, String)>, HashMap<String, Value>, Vec<u8>) -> Pin<Box<dyn Future<Output = ()>>>>)where
T: Future<Output = ()> + 'static,
Expand description
Helper for wrapping function to a Handler, and then binding to ‘HEAD’ method.