Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

'Allow' header #371

Closed
mdylanbell opened this Issue Aug 15, 2012 · 4 comments

Comments

Projects
None yet
3 participants

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.

Owner

kraih commented Aug 16, 2012

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 Aug 16, 2012

Owner

kraih commented Aug 16, 2012

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.

Collaborator

tempire commented Aug 16, 2012

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

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