Live data from Hacker News

Upcoming new HTTP QUERY method

datatracker.ietf.org

1–10 of 79 posts

Re: Upcoming new HTTP QUERY method

#2
This is great. Note it is co-authored by James Snell who I know from Node.js core. He has been a very prolific member working on things like QUIC in Node and web APIs.

I can definitely see why this could benefit his work (at Cloudflare) a lot since it would enable caching of results currently done through POST queries.

Re: Upcoming new HTTP QUERY method

#7
The spec doesn't say how browsers should represent such request in the browser address bar. The nice thing with GET is that you can copy a search url, bookmark it or share it with someone, and they get back the exact same results. How would that work with a QUERY method?

Re: Upcoming new HTTP QUERY method

#9
post #6

Is GET with a request body impractical at this point? It has historically been frowned upon [1] but is it really too late to change that convention? [1]: https://stackoverflow.com/questions/978061/http-get-with-req...

https://news.ycombinator.com/item?id=30129631

Re: Upcoming new HTTP QUERY method

#10

Am I right in thinking that this is basically an alternative to URI query parameters? Presumably to make parsing the query and caching the results easier.

The introduction paints it exactly as such by example, along with avoiding some other limitations like parameter size and encoding overhead.
Post reply on HN