Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEAD and OPTIONS handling #117

Merged
merged 8 commits into from
Apr 3, 2021
Merged

HEAD and OPTIONS handling #117

merged 8 commits into from
Apr 3, 2021

Conversation

The-EDev
Copy link
Member

@The-EDev The-EDev commented Apr 3, 2021

This PR adds support for crow to automatically handle HEAD and OPTIONS methods.

HEAD returns the same result as get, except the body is missing.
OPTIONS returns a 204 response with an Allow header containing all the methods the specific route can use (or all the methods the server can use if the url is http://myserver.etc/*).

closes #26

@The-EDev The-EDev requested a review from mrozigor April 3, 2021 03:32
@The-EDev The-EDev merged commit 3e43a73 into master Apr 3, 2021
@The-EDev The-EDev deleted the HEAD_and_OPTIONS branch April 4, 2021 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HEAD and OPTIONS methods handling
2 participants