Cuba v3.7.0 Release Notes
Release Date: 2016-06-09 // almost 8 years ago-
๐ This release adds matchers for the HTTP Verbs
patch
,head
,options
,link
,unlink
andtrace
. Previously, onlyget
,post
,put
anddelete
were supported, and in order to match other methods you had to query thereq
object.๐ Prior to this release, this is how you could match an
OPTIONS
request:on req.options? do ...end
And now you can use the
options
matcher:on options do ...end
Functionally equivalent, but easier on the eyes :-)
Thanks to @firoxer for the idea and the changeset.