Function esp_idf_svc::http::server::fn_handler
source ยท pub fn fn_handler<F, E>(f: F) -> FnHandler<F>where
F: for<'a> Fn(Request<&mut EspHttpConnection<'a>>) -> Result<(), E> + Send,
E: Debug,
Expand description
Wraps the given function into an FnHandler
.
Do not confuse with EspHttpServer::fn_handler
.