Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

'Allow' header #371

Closed
mdylanbell opened this Issue · 4 comments

3 participants

@mdylanbell

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

It would be nice if either Mojo::Header had an 'allow' method for setting the 'Allow' header, or even better if Mojo would automatically handle OPTION requests, setting the 'Allow' header with information about defined methods for a given URI.

@kraih
Owner

Mojo::Headers methods are only for commonly used headers, which Allow is currently not. And i'm afraid i don't see automatic OPTIONS handling fit into the router, perhaps you should start with a plugin and a few custom shortcuts.

@kraih kraih closed this
@kraih
Owner

If you know any public web services and/or frameworks that use Allow and OPTIONS effectively, i would be quite interested in studying them though.

@tempire
Collaborator

The automatic handling of OPTION requests is a perfect candidate for a plugin; wouldn't want it to be default at all.

@mdylanbell

Thanks for the feedback. I'll look into your plugin architecture.

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.