axum::routing::method_routing

Function connect

source
pub fn connect<H, T, S>(handler: H) -> MethodRouter<S, Infallible>
where H: Handler<T, S>, T: 'static, S: Clone + Send + Sync + 'static,
Expand description

Route CONNECT requests to the given handler.

See MethodFilter::CONNECT for when you’d want to use this, and get for an example.