HTTP request methods define the action to be performed on a resource when making an HTTP request. Each method has defined semantics — whether it is safe (read-only), idempotent (repeatable without side effects), cacheable, and whether it carries a request or response body. Understanding these properties is essential for designing REST APIs, handling CORS, and implementing correct client and server behavior.

Loading methods…

Quick Comparison Matrix

Safe = read-only, no side effects. Idempotent = same result if called multiple times.

Method Safe Idempotent Cacheable Req Body Res Body

REST API — CRUD to HTTP Method Mapping

How standard CRUD operations map to HTTP methods in a RESTful API.

CRUD Operation HTTP Method Example URL
Create POST POST /users
Read (list) GET GET /users
Read (single) GET GET /users/42
Update (full) PUT PUT /users/42
Update (partial) PATCH PATCH /users/42
Delete DELETE DELETE /users/42
Check existence HEAD HEAD /users/42
Discover methods OPTIONS OPTIONS /users