Skip to content

OPTIONS http method support #109

Closed
wants to merge 1 commit into from

2 participants

@Yuras
Yuras commented May 31, 2012

OPTIONS method is used e.g. for cross-site access control

@hoisie
Owner
hoisie commented Apr 8, 2013

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?

@hoisie
Owner
hoisie commented Apr 8, 2013

The interface would be something like:

web.Match(method, url, handler..)

for example

web.Match("OPTIONS", url, handler)

@hoisie
Owner
hoisie commented Apr 12, 2013

Fixed with 12889b4

@hoisie hoisie closed this Apr 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.