Repository navigation
test: cover built-in QUERY method parsing in HTTP/2 - #1781
Merged
Merged
Conversation
Motivation: The QUERY method is registered in the HTTP model and tested by the HTTP/1 parser, but has no focused HTTP/2 request parser test. Modification: Parse one ordinary QUERY request through the existing in-memory HTTP/2 fixture with default settings and assert the typed method. Result: The HTTP/2 request-parser test covers the built-in QUERY method without changing production behavior. References: apache#1077 apache#1477 https://www.rfc-editor.org/rfc/rfc9113.html#section-8.3.1 https://www.rfc-editor.org/rfc/rfc10008.html#section-2
He-Pin
marked this pull request as ready for review
November 27, 2026 20:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
HTTP/2 uses the built-in method registry for
:method. Native QUERY parsing already has an HTTP/1.1 regression test, but the direct HTTP/2 method cases did not name QUERY.Modification
Add one in-memory HTTP/2 request-model test using a normal QUERY request and assert that the built-in
HttpMethods.QUERYis selected without custom registration. No production, routing, or network changes. The test does not assert entity delivery or application semantics.Result
The focused test passed on JDK 17 with Scala 2.13.18 and Scala 3.3.9. Scoped formatting and whitespace checks passed. Full CI was not run locally.
References