Skip to content

Conversation

@WeihanLi
Copy link
Contributor

@WeihanLi WeihanLi commented May 23, 2025

fixes #114489

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

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
@dotnet-policy-service
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
@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