OPTIONS method is used e.g. for cross-site access control
allow to add OPTIONS handler
I'd prefer to have a method like web.Match that can handle a generic HTTP requests, and this can be used with less-common (or custom methods) like OPTIONS, PATCH, CONNECT, etc.. What do you think of that? Would it be flexible enough for your use case?
The interface would be something like:
web.Match(method, url, handler..)
web.Match("OPTIONS", url, handler)
Fixed with 12889b4