Skip to content

add HttpMethod.Query - #115934

Merged
MihaZupan merged 3 commits into
dotnet:mainfrom
WeihanLi:http-method-query
May 26, 2025
Merged

MihaZupan merged 3 commits into
dotnet:mainfrom
WeihanLi:http-method-query

Conversation

@WeihanLi

@WeihanLi WeihanLi commented May 23, 2025 •

Copy link
Copy Markdown
Contributor

fixes #114489

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@MihaZupan MihaZupan left a comment

Copy link
Copy Markdown
Member

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
@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

3 participants