Function axum::routing::post

source · []
pub fn post<H, T, B>(handler: H) -> MethodRouter<B, Infallible> where
    H: Handler<T, B>,
    B: Send + 'static,
    T: 'static, 
Expand description

Route POST requests to the given handler.

See get for an example.