connect

Connect requests are used to establish a connection to the server.

Example

router
    .connect("/", my_handler) // Matches only CONNECT requests for the '/' route
    .connect("/users", my_handler2) // Matches only CONNECT requests for the '/users' route

Warning

Connect requests in JoyRouter currently don't support things like websockets. The connect request is essentialy the same as the other requests.