HEAD, GET, POST, PUT
Essence
An HTTP method tells the server what to do with the resource at a URL. Two properties you need to know for every method:
- Safe — doesn't change state on the server. Safe requests can be cached and prefetched.
- Idempotent — repeating the request yields the same result as a single call. Idempotent requests can be safely retried after a dropped connection.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep