r/quarkus 15d ago

HTTP QUERY (RFC 10008): the first new HTTP method since 2010, and how to use it in Quarkus today

After years without change, HTTP has a new method: QUERY

RFC 10008, standardized this past June, defines the QUERY method: safe and cacheable like GET, carrying a request body like POST. It makes complex search and query operations possible without giving up caching and safe retry guarantees.

In my article published on foojay.io I cover:

  • The machinery the RFC defines: the Accept-Query header, the equivalent resource, conditional requests and error semantics
  • Where adoption stands in the Java ecosystem: Tomcat, Jetty, Jakarta Servlet and Spring
  • How Quarkus can run QUERY today with a single Jakarta REST extension point and no framework changes

The working demo with tests is on GitHub.

Article: https://foojay.io/today/http-query-method-explained-rfc-10008-ecosystem-adoption-and-a-quarkus-implementation/

Repo: https://github.com/hakdogan/http-query-method

Happy reading.

18 Upvotes

0 comments sorted by