6 views
And which one is which in terms of idempotency?
Asked at
AI answer
Idempotency means that repeating the same request results in the same target state as making it once; the responses may still differ. In HTTP, GET, HEAD, and OPTIONS are safe and idempotent methods; PUT and DELETE are idempotent but not safe. POST is usually non-idempotent. The standard does not guarantee idempotency for PATCH: it depends on how the specific change is implemented.
Also asked at Белл интегратор
Similar questions
- Could you explain idempotency in more detail?
- Which HTTP method is non-idempotent?
- Well, if we send several GET requests, we'll get the same response each time. What if we send several POST requests?
- Here is an example HTTP request (for changing user data: example.com/user/1). What does it do?
- Which HTTP methods are idempotent, and which are not?