Advertisement
Advertisement
β‘ Community Insights
Discussion Sentiment
63% Positive
Analyzed from 574 words in the discussion.
Trending Topics
#body#query#http#already#request#requests#method#using#post#optional
Discussion Sentiment
Analyzed from 574 words in the discussion.
Trending Topics
Discussion (32 Comments)Read Original on HackerNews
A whole new method whose semantics don't really fit with the others is.. An odd way forward.
So is using QUERY requests for quite some time from now.
All in all, I dislike the overall focus on the HTTP method when designing "RESTful" interfaces. If all we're building is, effectively, an RPC, why would the cacheability meta-information be the first thing we specify?
https://news.ycombinator.com/item?id=48568502 (4d ago, 173 comments)
https://news.ycombinator.com/item?id=29794838 (4y ago, 125 comments)
> I've had my fair share of situations where I wished for something like HTTP QUERY.
Using POST instead comes with no drawbacks
So much simpler...
So opensearch also allows you to POST search requests, but those are uncacheable
QUERY would fit here perfectly - it's probably trivial for opensearch to add but it will take some time for clients to catch up.
* With the caveat that it's only guaranteed if the server is following the RFC correctly.