GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: cover built-in QUERY method parsing in HTTP/2 by He-Pin · Pull Request #1781 · apache/pekko-http

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 27, 2026

Copy link
Copy Markdown
Member

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.QUERY is 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

  • RFC 9113 §8.3.1
  • RFC 10008 §2
  • fix: recognize QUERY in the HTTP/1 request parser #1477

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@He-Pin
test: verify HTTP/2 parses the standard QUERY method
ce65cfa
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
He-Pin marked this pull request as ready for review November 27, 2026 20:31
pjfanning
pjfanning approved these changes Nov 28, 2026
View reviewed changes

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@He-Pin
He-Pin merged commit 771632d into apache:main Nov 28, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@He-Pin
He-Pin deleted the test/http2-built-in-query-method branch November 28, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pjfanning pjfanning pjfanning approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@He-Pin @pjfanning
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.