Closed jeaye closed 7 years ago
I don't think CONNECT
is used often enough to have a routing macro by default. However, Compojure allows you to easily create your own:
(defmacro CONNECT [path args & body]
(compile-route :connect path args body))
Okie dokie. Thanks for considering it! I'll define my own for now.
Looks like there's no support for CONNECT, as described here: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods
Even when using ANY, CONNECT isn't parsed properly. I don't think compojure would need to do anything specific with it, just know how to parse it and send it along as a valid route. This would be useful for anyone looking to write an HTTP tunnel using ring + compojure. :)
Example: