HTTP Methods Reference

Standard HTTP request methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE with safety, idempotency, and body characteristics.

  • JSON5,292 B
  • YAML3,464 B · −35%
  • TOON2,596 B · −51%

The standard HTTP methods with their safety, idempotence, whether they carry a body and what they are for: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS and TRACE, plus CONNECT for proxy tunnels.

Use it when

  • You are choosing a method for an API operation.
  • You need to know whether a request can be retried safely.

Watch out for

  • Safe and idempotent describe the semantics defined by the specification; a badly designed server can violate them.
  • POST is neither safe nor idempotent by definition; use an idempotency key if retries must be safe.
  • A request body on GET, HEAD, or DELETE has no generally defined semantics. Do not infer universal support from a client library accepting one.

The data

Methods

MethodSafetyIdempotentBodyPurpose
GETSafetrueNo generally defined semanticsRetrieve a resource
POSTUnsafefalseYesProcess the enclosed representation according to the target resource; creation is one use
PUTUnsafetrueYesReplace a resource
PATCHUnsafefalseYesPartially modify a resource
DELETEUnsafetrueNo generally defined semanticsDelete a resource
HEADSafetrueNo generally defined semanticsGET without response body
OPTIONSSafetrueNoDescribe communication options
TRACESafetrueNoEcho request for diagnostic
CONNECTUnsafefalseNo generally defined semanticsEstablish a tunnel to the target, used by proxies for HTTPS

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
methodsmethodstringGET
methodssafetystringSafe
methodsidempotentbooleantrue
methodsbodystringNo generally defined semantics
methodspurposestringRetrieve a resource

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.com/api/dataset/http-methods-reference?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/http-methods-reference.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Sources and editorial notes

Original editorial reference notes by YJTOON, informed by the linked primary documentation. External specifications retain their own licenses.

Editorial review: . Source documents keep their own licenses.

Topics

  • http
  • methods
  • rest
  • web

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets