[−][src]Function roa::router::delete
pub fn delete<S>(endpoint: impl for<'a> Endpoint<'a, S>) -> Dispatcher<S>
This is supported on
feature="router"
only.Function to construct dispatcher with Method::DELETE and an endpoint.
You can use it as follow:
use roa::{App, Context, Result}; use roa::router::delete; async fn end(ctx: &mut Context) -> Result { Ok(()) } let app = App::new().end(delete(end));