Function webhook_flows::route::options

source ·
pub fn options<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 ‘OPTIONS’ method.