Visual RFC.
ALL RFCs / RFC 9110
Read the RFC ↗
RFC 9110 / REQUEST DECISIONS

HTTP methods: what are we asking for?

04

Read a drawing, make a new one, replace it, change one piece, or open a relay. Watch what changes when you repeat the request.

RFC 9110 · § 9EXAMPLE
1 / 5 · Choose an action

Start with what the browser wants. A method gives that request its meaning.

Read the drawing, or just ask for information about it.

Starting drawing · SunColor: goldStickers: 1

Choose an action below, then use Next to see why it has that effect.

Change the request

Changing an input returns to the beginning. Restart restores the current story’s original choices.

These examples run only on this page. No requests or credentials are sent. They use a fixed service with stated rules; other people do not change its data between requests. Space plays or pauses; Next, Previous and Restart follow the active scene.

Compare all ten methods and their sources

Read-only intention is called safe. The same intended effect after repetition is called idempotent. Neither guarantees a successful request or trustworthy content. Cache rules decide whether a response can be stored and reused.

MethodMeaningRead-only intention?Same intended effect if repeated?Response caching
GET ↗Read a current versionYesYesPermitted under cache rules
HEAD ↗Read information without response contentYesYesPermitted under cache rules
POST ↗Ask the target to process submitted contentNoNot guaranteed by this methodOnly under specified conditions
PUT ↗Create or replace state at the chosen addressNoYesResponse not cacheable
DELETE ↗Remove the target’s current associationNoYesResponse not cacheable
CONNECT ↗Ask a proxy to open a tunnelNoNot guaranteed by this methodResponse not cacheable
OPTIONS ↗Ask about communication optionsYesYesResponse not cacheable
TRACE ↗Ask for a diagnostic loopbackYesYesResponse not cacheable
PATCH ↗Apply a set of change instructionsNoNot guaranteed by this methodOnly under specified conditions
QUERY ↗Process supplied query content without requesting a changeYesYesDefined conditions include query-content matching

POST responses need explicit freshness and a Content-Location matching the target to be cacheable under RFC 9110. They can then satisfy a later GET or HEAD, not another POST. RFC 5789 likewise requires explicit freshness and a matching Content-Location for cacheable PATCH responses; a cached response does not satisfy another PATCH. POST and PATCH can have idempotent application-specific behavior; their method names alone do not guarantee it. Successful PUT/DELETE responses are not cacheable; they can invalidate stored responses under cache rules. QUERY caching has its own query-content rules. OPTIONS is not the same as a complete CORS exchange. TRACE and CONNECT are diagnostics/relay mechanisms, not ordinary page-editing verbs.

Current IANA method registry ↗ · MDN method reference ↗ · Explore status codes ↗

4 / 4
04
Avoid accidental duplicate effects.

A missing response does not prove that the server did nothing.

HTTP methods: what are we asking for?A retry decision contrasts a repeated PUT, which replaces the same state, with an uncertain repeated POST that might create a second item.Repeating an action has consequencesIllustrative request outcomesMETHODINTENDED EFFECTGET /draft · Read the current draftPUT /draft · Replace the draftPOST /jobs · Process a new jobPUT /draftstate = revision BPUT /draft againstate = revision BUnknown POST outcome: do not blindly repeatRetry only with evidence that it is safe

Key idea: A method says what a request asks for. The address and agreed application behavior complete the example.

Terms
Client / user agent
The app making a request; in this example, your browser.
Origin server
The server responsible for providing an answer for the target resource.
Request
A message asking for an action on a resource.
Response
The server’s message reporting the result of a request.
Resource
Something identified by a URI, such as the page at /story.
Representation
Content and descriptive information that convey a resource’s state, such as an HTML page.
Semantics
What a message or protocol element means, independently of how it travels.
Safe method
A method whose requested meaning is read-only; incidental effects such as logging can still occur.
Idempotent
Repeating the request has the same intended effect as making it once; responses may differ.
Retry
Send a request again after a failure or uncertain result.
RPC
Remote procedure call: asking another system to perform an operation.
port
A number used with a network address to choose which service to contact.
host name
A name identifying the system a client wants to contact.
explicit freshness
A stated time or rule saying how long a stored response can be reused without checking again.
Content-Location
A field identifying a resource corresponding to the content in this message.
intended effect
What the request asks the server to do, rather than incidental things such as logging.
cacheable
Allowed to be stored and reused under the applicable rules.
PATCH method
A request carrying instructions for changing parts of stored data.
QUERY method
A read-only request that carries the search instructions as data.
OPTIONS method
A request asking which communication actions a target supports.
TRACE method
A request asking a receiver to send back a copy of the request it received.
CONNECT method
A request asking a helper to open a path that can relay data to a destination.
proxy
A system a client uses to pass a request or connection onward.
tunnel
A connection through another system that relays data.
Max-Forwards
A request field limiting how many more forwarding steps are allowed.
Via field
A field recording systems that passed an HTTP message onward.
Allow field
A response field listing methods supported by the target resource.
Accept-Patch
A response field listing patch-document formats accepted by a resource.
JSON Patch
A list of instructions for changing JSON data.
JSON Pointer
A text way to point to a value inside JSON data.
atomic change
A group of changes that succeeds together or has no effect.
schema
The agreed structure and meaning of data for a particular application.
loopback
Sending back what was received so the sender can inspect it.
authority target
A host and port naming the endpoint a CONNECT tunnel should reach.
request content
Data sent with a request when that request permits it.
cookie
A small piece of stored website information that a browser can send back in requests.
TLS
A protocol that protects data in transit when correctly established and checked.
wire message
A message formatted for transfer using a particular HTTP version.
API
An agreed way for programs to ask another program to do things.
CORS
Browser rules that decide when a script can read a response from another origin.

Look up a term in the glossary ↗

Rules & examples
  • GET and HEAD retrieve information; HEAD omits response content. Safe methods do not request state changes.
  • PUT replaces target state, POST requests target-specific processing, and DELETE removes the target association. PUT and DELETE are idempotent.
  • OPTIONS describes communication options, CONNECT establishes a tunnel, and TRACE requests a loopback diagnostic.

These offline models hold external changes fixed. Safe means read-only intention, not harmless or private. Idempotence concerns intended effect, not identical response codes. POST processing is endpoint-specific; PATCH is not generally idempotent. The JSON storage schema and reply policies shown here are chosen examples, not universal API conventions. QUERY comes from RFC 10008; PATCH comes from RFC 5789.

Predict: If an identical DELETE first returns 204 and then 404, must it be non-idempotent?

Check your answer

No. Both can leave the intended final state the same: the association is absent. Reply codes can differ.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A request starts a conversation.

A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

EXPLORE THIS PROTOCOL

HTTP versions

HTTP semantics apply across versions. HTTP/2 and HTTP/3 change how messages travel; all three guides remain relevant.

All chapters in RFC 9110

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗