-
Notifications
You must be signed in to change notification settings - Fork 5.1k
add HttpMethod.Query #115934
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 HttpMethod.Query #115934
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for the new HTTP method "QUERY" by introducing a corresponding static property in HttpMethod and updating the parsing logic.
- Added Query property to HttpMethod in both implementation and reference assemblies.
- Extended the Parse method to handle method strings starting with 'q' by returning Query.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/libraries/System.Net.Http/src/System/Net/Http/HttpMethod.cs | New Query property added and Parse method updated to support "QUERY". |
src/libraries/System.Net.Http/ref/System.Net.Http.cs | Public API updated to include the Query property. |
Tagging subscribers to this area: @dotnet/ncl |
d020142
to
42b3af3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Can you please also add the new method in tests?
https://github.com/dotnet/runtime/blob/main/src/libraries/System.Net.Http/tests/FunctionalTests/HttpMethodTest.cs
d1b7139
to
a67de51
Compare
fixes #114489