HTTP Methods

Complete reference of HTTP methods with descriptions and typical use cases.

  • JSON3,451 B
  • YAML2,373 B · −31%
  • TOON1,854 B · −46%

The nine HTTP request methods with a description and whether the request carries a body: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE and CONNECT.

Use it when

  • You need the purpose of an HTTP method or whether it carries a body.
  • You are checking which methods a client may send.

Watch out for

  • For safety and idempotence properties, see the HTTP methods reference dataset.
  • TRACE and CONNECT are rarely used by applications, and TRACE is usually disabled for security.

The data

MethodDescriptionRequest body
GETRetrieves a resource. Safe, idempotent. Should not modify server state.false
POSTSubmits data to the server. Not idempotent. Creates a new resource.true
PUTReplaces a resource at a specific URI. Idempotent.true
PATCHPartially updates a resource. Not idempotent in general.true
DELETERemoves a resource at a specific URI. Idempotent.false
HEADSame as GET but returns only headers, no body. Safe, idempotent.false
OPTIONSReturns the allowed HTTP methods for a URL. Used for CORS preflight.false
TRACEEchoes back the received request. Used for debugging. Rarely implemented.false
CONNECTEstablishes a tunnel to the server. Used for HTTPS via proxy.false

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
datamethodstringGET
datadescriptionstringRetrieves a resource. Safe, idempotent. Should …
datarequest_bodybooleanfalse

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?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/http-methods.toon"
);
const toon = await res.text();

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

Topics

  • web
  • http
  • methods
  • api
  • rest

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets