Skip to main content

HTTP Just Got a New Method: Meet QUERY (RFC 10008)

HTTP has a new method: QUERY

For 25 years, web developers have gotten by with a familiar handful of HTTP methods: GET, POST, PUT, DELETE, PATCH. In June 2026, the list officially grew. Meet QUERY — standardized as RFC 10008 by the IETF, with authors from Cloudflare, Akamai, and greenbytes. It’s the first genuinely new, general-purpose HTTP method in a very long time, and it fixes a problem developers have hacked around for years.

The problem QUERY solves

Say you’re building a search or filter endpoint. You have two bad options:

  • Use GET and cram everything into the URL query string. This is “correct” (search is safe and repeatable), but URLs have length limits, complex/structured queries are painful to encode, and your search terms end up in server logs, browser history, and proxy caches.
  • Use POST and put the query in the request body. Now you have room for a rich query — but you’ve lied about your intent. POST is neither safe (it’s allowed to change server state) nor idempotent (repeating it might do something twice). So the response can’t be cached, and clients, proxies, and browsers won’t safely retry it.

People also tried “GET with a body,” but that’s undefined behavior — many servers and proxies simply ignore or reject the body. There was no right answer. Until now.

What QUERY actually is

Straight from the spec: a QUERY request asks the server to process the enclosed content in a safe and idempotent manner and respond with the result. In plain terms:

  • It has a request body, like POST — so you can send a big, structured query (JSON, SQL, GraphQL, whatever the server accepts).
  • It’s safe, like GET — it doesn’t change server state.
  • It’s idempotent, like GET — it can be automatically retried or restarted without fear of doing something twice.

That combination is exactly the sweet spot that didn’t exist before:

GET vs POST vs QUERY comparison

What it looks like

A QUERY request is refreshingly readable — the method up top, the query in the body:

QUERY /contacts HTTP/1.1
Host: example.com
Content-Type: application/json
Accept: application/json

{ "filter": { "age": { "gt": 30 } }, "fields": ["name", "email"] }

The server processes the body and returns the result — and because the request is safe and idempotent, that response can be cached and the request can be safely repeated.

The extras that make it practical

  • Accept-Query header. A server can advertise which query formats it understands (via an OPTIONS response), so clients can discover whether to send JSON, SQL, GraphQL, etc.
  • Cacheable responses. QUERY plays with HTTP caching and the Content-Location header, so a query result can point at a cacheable representation.
  • Conditional requests. It works with ETag/If-None-Match, so repeat queries can return a cheap “not modified.”

Why it matters

Search APIs, analytics endpoints, GraphQL-over-HTTP, database front-ends, and any “complex read” finally have a method that describes what they actually do. That means better caching, safe retries, cleaner logs (no secrets in the URL), and honest semantics for the intermediaries — proxies, CDNs, gateways — that make the web fast.

The catch: adoption takes time

A standard is step one. Now servers, frameworks, proxies, CDNs, and client libraries have to add support, and old intermediaries that don’t recognize QUERY may mishandle it for a while. Expect a gradual rollout — the big infrastructure players (note the authors’ employers) are already on board, which is the fastest path to real-world support. If you’re building an API today, it’s worth watching your stack for QUERY support and planning for it.

The takeaway

QUERY isn’t flashy, but it’s the kind of quiet plumbing upgrade that makes the whole web a little more correct. After years of misusing GET and POST for search, developers finally have the method they always needed: a request with a body that’s safe, idempotent, and cacheable. Welcome to the club, QUERY.

Reference: RFC 10008, “The HTTP QUERY Method” (IETF, June 2026).


🔗 Explore more from Syncster

Comments

Popular posts from this blog

Cursor AI Review: Is the AI Code Editor Worth It?

I've been using Cursor as my main code editor for a while now, and enough people have asked whether it's worth switching to that a proper review felt overdue. Short version: for me, yes — but with caveats. What is Cursor? Cursor is an AI-first code editor built as a fork of VS Code. That means every extension, theme, and keybinding you already use in VS Code works here, but with AI woven directly into the editing experience instead of bolted on as a plugin. It's made by Anysphere and can run models from OpenAI and Anthropic under the hood. What I like Tab completion is uncanny. Cursor predicts your next edit — not just the rest of the line, but the next change across the file. Once you get used to hitting Tab, going back to a plain editor feels slow. The Composer / Agent mode. You describe a change in plain language and it edits multiple files at once, showing you a diff to accept or reject. For refactors and boilerplate, this saves real time. It unde...

MacBook Pro M5 vs M5 Pro: Which One Should You Actually Buy?

Apple's latest 14-inch MacBook Pro comes in two very different flavors: the base M5 and the step-up M5 Pro . On paper they look similar — same gorgeous Liquid Retina XDR display, same design — but under the hood the gap is bigger than the names suggest. Here's a clear, no-hype breakdown, with concrete use cases so you can match the chip to your work. Quick spec comparison Spec M5 M5 Pro CPU 10-core (4 performance + 6 efficiency) Up to 18-core (6 performance + 12 efficiency) GPU 10-core Up to 20-core Neural Engine 16-core 16-core Memory bandwidth 153 GB/s 307 GB/s (roughly double) Unified memory 16 / 24 / 32 GB 24 / 48 / 64 GB Max storage Up to 4 TB SSD Up to 8 TB SSD Battery (video playback) Up to 24 hours Up to 22 hours Media engines Single encode/ProRes engine More encode/ProRes engines (higher configs) What actually changes between them More cores — the M5 Pro nearly doubles CPU cores and adds GPU cores, so sustained, multi-threaded work finishe...

How I used Google Sheets and Apps Script

Google Sheet is one of the most powerful spreadsheet application that exists online, rivaling with Microsoft's Excel. One of the main strengths is its strong support for collaboration with other users, much easier and popular than collaboration tools with Microsoft Office. Aside from plain spreadsheet, it also supports extensions such as macro. If you are familiar with macros on other office tools, they work almost the same. However, the most extension I use and tinker with is the Apps Scipt . Apps Script Extension One of the challenges I faced recently is how do I track or monitor reports in our department if they are submitted on time or worst, forgotten due to lack of better monitoring tools. So I thought if there can be simple applications that can be deployed or use by a more general user to allow reminding periodically what reports are approaching due dates or those that are past dues. Then I looked for a way, instead of creating a full blown app from scratc...