Function connect

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

Route CONNECT requests to the given handler.

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