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

Dispatch routers by method #188

Merged
merged 3 commits into from
Jun 23, 2024
Merged

Dispatch routers by method #188

merged 3 commits into from
Jun 23, 2024

Conversation

kanarus
Copy link
Member

@kanarus kanarus commented Jun 23, 2024

  • Stop sticking to respond with 405 Method Not Allowed and use 404 Not Found instead in following situation :
Ohkami::new(
    "/abc".POST()
).howl("localhost:3000").await
curl http://localhost:3000
  • Respond with 501 Not Implemented for OPTIONS requests to existing paths by default
  • Fix HEAD handling to remain Content-Type header from GET response

@kanarus kanarus merged commit 983a9d8 into main Jun 23, 2024
2 checks passed
@kanarus kanarus deleted the dispatch_by_method_before_router branch June 23, 2024 18:06
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.

1 participant