-
-
Notifications
You must be signed in to change notification settings - Fork 998
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
Feature: on Go 1.22 pattern can start with an optional HTTP Method #895
Comments
are you wondering if chi's .Handle() method should also support the method prefix..? we certainly could add support for it pretty easily without any breaking changes. If others want it as well, I'll add it |
👍 r := chi.NewRouter()
r.Handle("GET /user/{id}", userHandler) |
Can I give it a shot? |
I have opened a pull request |
merged :) thanks @Spartan09 for the PR |
Since Go 1.22, it has become possible to specify HTTP Methods in the Path. Does chi plan to support this feature?
golang/go#61410
The text was updated successfully, but these errors were encountered: