RFC 10008: The new HTTP Query Method(rfc-editor.org)
391 points by schappim 1 day ago | 162 comments
tl;dr: RFC 10008 defines QUERY, a new HTTP method that combines GET's safety and idempotency with POST's ability to send request bodies, solving the problem of queries too large to fit in a URL. Responses are cacheable (with the cache key derived from request content), and servers can optionally return Location or Content-Location headers pointing to equivalent GET-able resources for the query or its results. A companion Accept-Query response header advertises which media types a resource supports for queries.
HN Discussion:
  • Article lacks strong motivating example and body-as-cache-key feels problematic
  • Enthusiastic about practical applications like HTML forms, streaming APIs, and replacing POST /search
  • ~The QUERY name is confusing given 'query' already refers to HTTP requests generally
  • ~Concerns about ecosystem support like browser bookmarks needing to handle request parameters
  • Skepticism that QUERY was needed since GET with body already works in practice