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

Add missing router methods #33

Merged
merged 4 commits into from Sep 13, 2021

Conversation

fkettelhoit
Copy link
Contributor

This PR mostly adds sync and async router fns for the missing HTTP methods HEAD, PUT, PATCH, DELETE, OPTIONS, CONNECT and TRACE.

I originally added a with_status_code setter to Response in my fork, but later saw that you have since added a nearly identical method, so I merged the two commits and kept with_status as the name from the main branch (though perhaps with_status_code should be used to be consistent with the existing getter). Let me know if you would prefer to have a separate PR for the with_status return value type change.

@nilslice nilslice changed the base branch from main to merge/pr-33 September 13, 2021 15:22
@nilslice nilslice merged commit d2b69e8 into cloudflare:merge/pr-33 Sep 13, 2021
@nilslice
Copy link
Contributor

Thanks @fkettelhoit - I've merged this into a testing branch and will get back to you if there are any changes needed. I think it's a great addition and appreciate the help! This will likely be out with the next release.

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.

None yet

2 participants