Skip to content

Replace GET/POST with new HTTP QUERY RFC10008 - #179

Merged
ebremer merged 31 commits into
mainfrom
httpquery
Jul 20, 2026
Merged

ebremer merged 31 commits into
mainfrom
httpquery

Conversation

@ebremer

@ebremer ebremer commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Replaces GET/POST in Search and Type Index with new HTTP QUERY

Comment thread lws10-searchindex/index.html Resolved
@jeswr

jeswr commented Jun 27, 2026

Copy link
Copy Markdown
Member

As I understand RFC10008 is a proposed standard. I advise we either pause on merging this PR or mark the use of HTTP Query as "at risk" until the RFC is upgraded to an internet standard.

I am particularly concerned that clients will find this difficult to implement without support for QUERY built into libraries such as undici (the fetch implementation for node).

@ebremer

ebremer commented Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

HTTP/2 is a proposed standard as well. Just sayin' :-)

@jeswr

jeswr commented Jun 29, 2026

Copy link
Copy Markdown
Member

proposed standard

This was my own misunderstanding of what maturity being a proposed standard implies. I stand down my request "to mark the use of HTTP Query as "at risk" until the RFC is upgraded to an internet standard."

I am particularly concerned that clients will find this difficult to implement without support for QUERY built into libraries such as undici (the fetch implementation for node).

nodejs/undici#5459 was just opened by the undici maintainers in response to nodejs/undici#5454. Given it was opened by the maintainers, this indicates the library intends to support this features soon (in fact will likely do so before this PR is merged).

@ebremer

ebremer commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

In the Eclipse Jetty world, jetty/jetty.project#15316 adds RFC10008 support

@gibsonf1

gibsonf1 commented Jun 29, 2026 •

Copy link
Copy Markdown

Definitely a fan of moving to Query, but we should do it for the Type Index as well as that also needs to have additional things sent with it, such as labels etc to match on very large type indexes (optional based on implementation of course, but that will be the first thing TwinPod does is find types using text)

@ebremer

ebremer commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

@gibsonf1 this PR is for the Type Index

@ebremer

ebremer commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

In Tomcat apache/tomcat#1026

@TallTed

TallTed commented Jun 30, 2026

Copy link
Copy Markdown
Member

HTTP/2 is a proposed standard as well.

And HTTP/1.1 has not been obsoleted, nor even updated.

(Well, apparently, this depends on where you look. RFC 9113 refers to RFC 9110, and RFC 9110 says that it obsoletes RFC 7231, but RFC 7231 does not say that it is obsoleted by RFC 9110 nor RFC 9113 nor any other! And here I thought that the IETF held themselves to a higher standard than other standards bodies. Their participants certainly present themselves as doing so, often enough!)

As I said during yesterday's call, client tools using HTTP (and related protocols) can always ask the server what methods it supports (see the OPTIONS method of HTTP/1.1, for instance). What happens next depends on the client — it might give up, or it might ask about another method or another resource, or it might use one of the methods the server has already indicated it supports.

I regret that I was not aware of RFC10008 until this week, so I did not make any comments on its evolution. Had I been aware, I would have suggested that there be further options available, like the server could indicate that it supports various query languages (e.g., SQL, SPARQL, GRAPHQL) in the payload other than whatever minimum is specified by RFC10008 as it stands.

@ebremer

ebremer commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor Author

I regret that I was not aware of RFC10008 until this week, so I did not make any comments on its evolution. Had I been aware, I would have suggested that there be further options available, like the server could indicate that it supports various query languages (e.g., SQL, SPARQL, GRAPHQL) in the payload other than whatever minimum is specified by RFC10008 as it stands.

That capability is already in RFC 10008. There is no mandated minimum query language to extend past. QUERY standardizes a transport, not a query language, and the request's Content-Type defines the format. Advertising which formats a resource accepts is exactly what the Accept-Query response field is for:

Accept-Query: application/sparql-query, application/sql

Discoverable proactively (or via OPTIONS/Allow), or via a 415 that returns Accept-Query.

@ebremer
ebremer marked this pull request as ready for review July 6, 2026 14:32
@reschke

reschke commented Jul 16, 2026

Copy link
Copy Markdown

HTTP/2 is a proposed standard as well. Just sayin' :-)

...and so was HTTP/1.1 until 202x.

Comment thread lws10-searchindex/index.html Resolved
Comment thread lws10-searchindex/index.html Resolved
Comment thread lws10-searchindex/index.html Resolved
Comment thread lws10-searchindex/index.html Resolved
Comment thread lws10-searchindex/index.html Resolved
Comment thread lws10-searchindex/index.html Resolved
@reschke

reschke commented Jul 17, 2026

Copy link
Copy Markdown

(Well, apparently, this depends on where you look. RFC 9113 refers to RFC 9110, and RFC 9110 says that it obsoletes RFC 7231, but RFC 7231 does not say that it is obsoleted by RFC 9110 nor RFC 9113 nor any other! And here I thought that the IETF held themselves to a higher standard than other standards bodies. Their participants certainly present themselves as doing so, often enough!)

RFCs are immutable. So when you look at the official version, there will be no such indicator.

@pchampin

Copy link
Copy Markdown
Contributor

(Well, apparently, this depends on where you look. RFC 9113 refers to RFC 9110, and RFC 9110 says that it obsoletes RFC 7231, but RFC 7231 does not say that it is obsoleted by RFC 9110 nor RFC 9113 nor any other! And here I thought that the IETF held themselves to a higher standard than other standards bodies. Their participants certainly present themselves as doing so, often enough!)

RFCs are immutable. So when you look at the official version, there will be no such indicator.

The RFC's text is indeed unchanged, but the metadata in the side-bar at RFC 7231 states "Obsoleted by RFC 9110".

@pchampin

Copy link
Copy Markdown
Contributor

I won't stand in the way of this PR, but shouldn't the spec allow a fallback to GET and POST for implementations having issues with QUERY support? (I understand that QUERY support is growing rapidly, but still...)

ebremer and others added 7 commits July 19, 2026 23:00
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Co-authored-by: Ted Thibodeau Jr <[email protected]>
@TallTed

TallTed commented Jul 20, 2026

Copy link
Copy Markdown
Member

shouldn't the spec allow a fallback to GET and POST for implementations having issues with QUERY support

YES!

I knew there was something that felt wrong about this PR. I think that either the fallback should be incorporated before this PR is merged, or an issue should be opened that demands the fallback so that it will be added before CR and/or REC.

@ebremer
ebremer merged commit 96c9015 into main Jul 20, 2026
@ebremer
ebremer deleted the httpquery branch July 20, 2026 15:03
@jeremycaine

jeremycaine commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

@ebremer I know we voted and merged, but I did some more digging.

Today's call discussion asked whether we should support fallback if QUERY not supported. Given the timeline to get to a TR in next 18mo then we should discuss fallback to GET/POST if QUERY not implemented.

If we leave the spec silent on alternatives to QUERY then are we falling back to what the RFC says here and here

Below is a consolidated view of results from a Claude and ChatGPT search. Each line item should be validated, but it suggest we can't assume overwhelming support by various software/frameworks in line with LWS TR publication.

--

Stack Status Notes
Node.js (core) ✅ Shipped Native support since v21.7.2 / 22+ via llhttp. undici (the fetch client) has a separate open tracking issue (nodejs/undici#5459).
Browsers / fetch() ✅ Works, unofficial fetch() accepts "QUERY" as an arbitrary method string in current browsers. Not CORS-safelisted, so cross-origin calls trigger a preflight. Not yet documented on MDN.
OpenAPI 3.2 ✅ Spec-level support QUERY is modeled in the spec, so generated API clients can support it ahead of many hand-written servers.
Express ✅ Shipped Merged PR (expressjs/express#5615) adds routing support.
Fastify ❌ Not in core (plugin only) Core support is an open issue (fastify/fastify#6807, opened Jun 21 2026). A third-party plugin (@thecodepace/fastify-http-query) adds it via addHttpMethod.
nginx ⚠️ In progress PR (nginx/nginx #1511, "Add basic RFC 10008 support") was going through CI as of late June 2026 — not confirmed merged/released.
Apache httpd ❓ No evidence found Nothing surfaced either way.
Apache Tomcat ⚠️ In progress Open PR (apache/tomcat#1026), feeding into a related Jakarta Servlet spec proposal (jakartaee/servlet#1068).
Eclipse Jetty ⚠️ In progress Open PR (jetty/jetty.project#15316).
Bun ❓ No native announcement Node-compat and Fetch-style server likely pass arbitrary methods through, but no dedicated QUERY feature confirmed.
Deno ⚠️ Likely works at primitive level Arbitrary methods generally pass through Deno.serve/fetch primitives; no framework-level QUERY feature confirmed.
Go (net/http) ⚠️ Works manually No http.MethodQuery constant, but http.NewRequest("QUERY", ...) and Go 1.22+ ServeMux method routing work with the raw string.
ASP.NET Core ⚠️ Emerging Support appearing in .NET 11 previews, not GA.
Spring Framework ❌ Not shipped Open issue/PR (#36988, PR #34993); RequestMethod enum has no QUERY entry yet.
Ruby on Rails ⚠️ Discussion stage Core team opened a public proposal/discussion after the RFC published; no implementation yet.
W3C Linked Web Storage protocol ⚠️ In progress Proposal to adopt QUERY (#179).
curl ❓ No confirmed support Repeatedly flagged as a "watch this space" item; no shipped support found.

@ebremer

ebremer commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

@jeremycaine Here is my tracking table. Not as bleak. I will open an issue for the fall back discussion. Honestly, if we add fall back, I would rather add to the document with QUERY in place rather than add QUERY with GET/POST in place.

Stack Status Repo ★ Stars PR / issue Days after RFC (Jun 16 = day 0) Notes
Go (net/http) ⚠️ Manual golang/go 135,304 Issue #80058 — open · PR #80134 — open +2 issue (Jun 18) · PR +8 (Jun 24) Raw method strings work; MethodQuery proposal + PR not merged
Node.js (core) ✅ Shipped nodejs/node 118,327 v21.7.2 release (llhttp 9.2.0 bump, no single PR) −804 (Apr 3, 2024) Earliest shipper
Deno ⚠️ Open denoland/deno 107,760 Issue #36186 — open +34 (Jul 20) Feature request for full RFC 10008 support; fetch() may already accept method string
Bun ⚠️ Open oven-sh/bun 94,911 Issue #34839 — open +34 (Jul 20) Feature request for full RFC 10008 support; no native first-class support yet
Express ✅ Works expressjs/express 69,226 Issue #5615 — closed completed, no code PR −787 (Apr 20, 2024) Filed 17 days after Node shipped parsing
Spring ❌ Not shipped spring-projects/spring-framework 60,128 PR #34993 — open (fixes #32975); #36988 closed as duplicate −378 (Jun 3, 2025) · revived +15–17 Community-approved Jul 3; still open
Rails ⚠️ PR open rails/rails 58,634 PR #57973 — open (proposal thread) ~+6 proposal → +17 PR (Jul 3) Rails core reviewed +30; active through +31
curl ✅ Generic curl/curl 42,429 none needed n/a -X QUERY works today
ASP.NET Core ⚠️ Preview dotnet/aspnetcore 38,222 PR #65714 — shipped in 11 Preview 4 −35 (May 12, 2026) OpenAPI recognizes QUERY as operation type
Fastify ✅ Shipped (main) fastify/fastify 36,767 PR #6832 — merged · closes #6807 +5 issue (Jun 21) · merged +30 (Jul 16) First-class QUERY (not only addHttpMethod); release tag TBC
nginx ⚠️ Open nginx/nginx 31,171 PR #1488 — open · (#1511 closed, not merged) +6 (Jun 22) Recognition only; body cache key TBD
OpenAPI ✅ Spec-level OAI/OpenAPI-Specification 31,098 3.2.0 announcement −266 (Sep 23, 2025) —
WHATWG HTML ⚠️ Open whatwg/html 9,329 Issue #12594 — open (<form method="query">) +1 (Jun 17) Needs implementer interest; today falls back to GET
Cloudflare workerd ⚠️ Open cloudflare/workerd 8,411 Issue #6849 — open +14 (Jun 30) Body-keyed QUERY caching (RFC 10008 §2.7) via Cache API
Tomcat ✅ Merged apache/tomcat 8,211 PR #1026 — merged +15 (Jul 1) Release placement TBC
undici ✅ Shipped nodejs/undici 7,651 Issue #5454 — closed · PR #5459 — merged +11 issue (Jun 27) · PR +13 (Jun 29) · first npm 8.6.0 at +16 Still present in 8.8.0 (+34)
Jetty ⚠️ Open jetty/jetty.project 4,091 PR #15316 — open +5 (Jun 21) Retargeted to Jetty 13.0.x
Apache httpd ❓ Nothing apache/httpd 4,034 none found n/a Passthrough only
Browsers / fetch() ✅ Works, unofficial whatwg/fetch 2,243 Issue #1938 — open +14 (Jun 30) Plus Mozilla #1430 (open) · WebKit #692 (closed invalid)
Rust http crate ✅ Shipped hyperium/http 1,362 PR #798 — merged · closes #743; #847 closed as duplicate 0 (Jun 16) Method::QUERY constant; safe + idempotent
Jakarta Servlet ✅ Completed jakartaee/servlet 325 Issue #1068 — closed completed +9 (Jun 25) · closed ≤+34 Cites Tomcat PR
W3C LWS ✅ Merged, contested w3c/lws-protocol 26 PR #179 — merged +10 · merged ≈+34 Fallback debate = your thread
RFC 10008 ✅ Published IETF HTTP WG — RFC 10008 (datatracker) 0 (Jun 16, 2026) IESG approval Nov 20, 2025 = −208

@ebremer

ebremer commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

see #205 for further discussion of potential GET/POST fall back whe QUERY not available.

@jeremycaine

Copy link
Copy Markdown
Contributor

Better homework than me @ebremer :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants