Node.js · Middle · Question 34 of 75
Which HTTP methods are idempotent by definition?
- ✓Correct answer: GET, PUT, DELETE (and HEAD, OPTIONS)
- 2All methods
- 3POST and PATCH
Explanation
Repeating an idempotent request has the same effect as doing it once, so clients can safely retry it. For POST, idempotency keys give the same safety.