Method HTTP (GET/POST/PUT/PATCH/DELETE)

Send GET, HEAD, POST, PUT, PATCH, DELETE to Dodi’s gudang, once or three times: see which are safe and which are idempotent, right in his book. An interactive…

Why it matters

The wrong method makes quiet bugs: GET for an action that changes data (prefetchers, crawlers and reloads set it off too), or POST where it often repeats, so a double click makes duplicate data. Knowing which are safe and which are idempotent means knowing which may be repeated.

The key idea

Safe and idempotent are two different properties

Common mistakes

Try it in this playground