Skip to content
All references

HTTP reference

HTTP Methods

Compare common request methods, safety and idempotency. These properties describe semantics, not an authorization guarantee.

9 of 9 entries

Safe

GET

GET /articles HTTP/1.1

Requests a representation. Safe and idempotent by defined semantics.

Safe

HEAD

HEAD /articles HTTP/1.1

Like GET without response content; useful for representation metadata.

Safe

OPTIONS

OPTIONS /articles HTTP/1.1

Requests communication options; browsers also use it for CORS preflight.

Write

POST

POST /articles HTTP/1.1

Requests resource-specific processing. Idempotency is not guaranteed by the method.

Write

PUT

PUT /articles/42 HTTP/1.1

Creates or replaces target state according to the representation; defined as idempotent.

Write

DELETE

DELETE /articles/42 HTTP/1.1

Removes the target association. Idempotent semantics do not require identical repeated response codes.

Write

PATCH

PATCH /articles/42 HTTP/1.1

Applies a partial modification. Idempotency depends on the patch operation and API design.

Tunnel

CONNECT

CONNECT example.com:443 HTTP/1.1

Requests a tunnel through a proxy; it is not a regular resource fetch.

Diagnostic

TRACE

TRACE / HTTP/1.1

Diagnostic loopback with safe, idempotent semantics; commonly restricted by servers.