3 ms·
I'd just like to clarify that what you have described here is "safe" rather than "idempotent" [0]. Easy mistake to make, made the same mistake myself, idempoten
by rusk 9y ago
I'd just like to clarify that what you have described here is "safe" rather than "idempotent" [0]. Easy mistake to make, made the same mistake myself, idempotently (that is to say you only make it once ;)
Get, and NOOP, are both "safe" and naturally "idempotent" since the former encompasses the latter.
[0] https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
- thomasz 9y agoGET must be safe and idempodent. In the context of http, idempodency basically means that you get the same result for each request with the same url and the same set of parameters. Toggle should be implemented as post, since it’s neither safe, nor idempodent.
- rusk 9y agoyes
- mpweiher 9y ago> get the same result for each request with the same url and the same set of parameters. I think the resource can change externally...so it means that your GET request doesn't change it, but it doesn't have to be the same result every time.
- dalore 9y agoNo not the same result. How would the front page of any news site work then?