Function axum::service::connect[][src]

pub fn connect<S, B>(svc: S) -> OnMethod<S, EmptyRouter<S::Error>, B> where
    S: Service<Request<B>> + Clone
Expand description

Route CONNECT requests to the given service.

See get for an example.