Skip to content

Reuse HttpMethod.Query for QUERY requests - #3070

Open
kendaleiv wants to merge 1 commit into
dotnet:mainfrom
kendaleiv:add-http-query
Open

kendaleiv wants to merge 1 commit into
dotnet:mainfrom
kendaleiv:add-http-query

Conversation

@kendaleiv

@kendaleiv kendaleiv commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Reuse HttpMethod.Query when forwarding requests and canonicalizing HTTP method transforms, consistent with other recognized methods.

YARP already accepts QUERY, including mixed case spellings, through its custom method fallback. This change avoids allocating a new HttpMethod for each forwarded QUERY request.

Reuse HttpMethod.Query when forwarding requests and canonicalizing method transforms. Add coverage for QUERY casing and transformations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3ca87db4-e33d-49ca-b76d-db9ccb384dbd
@kendaleiv
kendaleiv requested a review from MihaZupan as a code owner November 10, 2026 13:18

This branch has not been deployed

No deployments
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.

1 participant