Skip to content

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

Merged
merged 3 commits into from
May 26, 2025
Merged

add HttpMethod.Query #115934

merged 3 commits into from
May 26, 2025

Conversation

WeihanLi
Copy link
Contributor

@WeihanLi WeihanLi commented May 23, 2025

fixes #114489

@Copilot Copilot AI review requested due to automatic review settings May 23, 2025 10:01
Copy link
Contributor

@Copilot Copilot AI left a 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.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 23, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MihaZupan MihaZupan added this to the 10.0.0 milestone May 26, 2025
@WeihanLi WeihanLi force-pushed the http-method-query branch from d1b7139 to a67de51 Compare May 26, 2025 13:05
@MihaZupan MihaZupan enabled auto-merge (squash) May 26, 2025 13:15
@MihaZupan MihaZupan merged commit 8b3b6e5 into dotnet:main May 26, 2025
83 of 85 checks passed
@WeihanLi WeihanLi deleted the http-method-query branch May 26, 2025 23:18
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: Add minimal QUERY verb support to HttpClient
2 participants