HTTP method
The verb at the start of a web request that says what the client wants, such as GET to read or POST to create.
In more detail
Each method carries promises: GET and HEAD are safe, PUT and DELETE are idempotent, and POST promises neither. POST to a collection creates, GET reads, PUT replaces the whole resource, PATCH changes only the fields you send, and DELETE removes. Caches, proxies and retry logic act on these promises, so choosing the wrong method creates bugs far away from your code.
Examples
POST /tasks createPATCH /tasks/1 update some fieldsPUT /tasks/1 replace the whole thinghttp.MethodGet@GetMapping maps GET requests; @PostMapping maps POST requestsGET asks for a representation without changing anything, POST submits data, PUT replaces, PATCH changes part of something and DELETE removes it. The method expresses the request's intent.A Route Handler exports functions named after methods: export async function GET() and export async function POST().Span names such as GET /checkout and POST payments start with the HTTP method.A plain HTML form submits with POST; a React 19 form action intercepts the submission on the client.In this course: a contract names each endpoint by its method and path, such as GET /profile.Related terms
- safe method — An HTTP method, such as GET or HEAD, whose request is not meant to change anything on the server.
- idempotency — The property of an operation that gives the same result whether you run it once or many times, because a repeat run finds nothing left to do.
- HEAD — The HTTP method that asks for exactly the headers a GET would return, but without the body.
- OPTIONS — The HTTP method that asks a server which communication options a resource supports, used by browsers for CORS preflight requests.
- CRUD — Short for create, read, update and delete, the four basic things you can do to stored data.
- 405 Method Not Allowed — The HTTP status meaning the resource exists but does not accept this method, answered with an Allow header listing the methods it does accept.
- HTTP — The protocol web browsers and web servers use to send requests and responses.
- access log — A log file where a web server writes one line per request, with the client address, time, method, path and status code.
- endpoint — An address that a program sends requests to, such as a web path like /health or a network socket.
- curl — A command-line tool for sending web requests and printing the response.
- cross-site request forgery — An attack where another website makes the victim's browser send a request to your site, and the browser's cookie makes it look genuine.
- REST — An architectural style for networked software built on named resources, representations of their state, stateless requests and a uniform interface.
- route — The combination of HTTP method and URL path that a server maps to one handler, such as GET /orders/{id}.
- request mapping — The annotations, such as @GetMapping("/orders/{id}"), that connect an HTTP method and path to a controller method.
- HTTP request — The message a client sends to a server: a method, a target, a protocol version, headers, a blank line and an optional body.
- span — One timed operation within a trace, such as handling a request or running a query, with its start, duration and attributes.
- FormData — A browser object holding the name and value of every field in a submitted form.
- application layer — The top layer, where protocols such as HTTP, DNS and SSH give the bytes meaning as requests, answers and commands.
- literal type — A type that allows exactly one value, such as the string "GET", the number 404 or true.
- Exclude<T, U> — The utility type that removes from union T every member assignable to U, such as Exclude<HttpMethod, "GET">.
Taught in
- The Request And The Response — AI Engineering: LLM Apps, RAG & Agents
- Retrieval That Finds The Right Thing — AI Engineering: LLM Apps, RAG & Agents
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents
- Remote Servers And Trust — AI Engineering: LLM Apps, RAG & Agents
- HTTP Methods And Status Codes — Modern API Architecture: REST, GraphQL & gRPC
- The REST Constraints — Modern API Architecture: REST, GraphQL & gRPC
- Actions That Do Not Fit CRUD — Modern API Architecture: REST, GraphQL & gRPC
- Error Handling And Safe Retries — Modern API Architecture: REST, GraphQL & gRPC
- Technology Sprint: The Design Review — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Confusable Services Sprint: One Clue Each — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Many Accounts: Organizations, SCPs And Control Tower — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Databases That Survive: Standbys, Replicas And Global Tables — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Route 53 Routing: Where Does A Fan In Lagos Land? — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Storage Performance: IOPS, Throughput And The Right Volume — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Full Mock And Your Review Plan — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Monday, Five Tickets — Microsoft Azure Administrator (AZ-104) Exam Prep
- Should Theo Be An Owner? Azure Roles And Scopes — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Role That Fits: Reading And Writing Role Definitions — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Storage Account In The Wrong Country: Azure Policy — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Deleted IP Address: Locks, Tags, Groups And Subscriptions — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Link That Would Not Die: Keys, SAS And Storage Firewalls — Microsoft Azure Administrator (AZ-104) Exam Prep
- Wikis, Release Notes And Integrations — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Pipelines, tee And Process Substitution — Bash Scripting & Command Line Automation
- Finding Lines: grep And Regular Expressions — Bash Scripting & Command Line Automation
- One Commit, Four Argo Projects — Certified Argo Project Associate (CAPA) Exam Prep
- What Argo Workflows Runs: Controller, Server And One Pod A Step — Certified Argo Project Associate (CAPA) Exam Prep
- The Workflow Spec: Entrypoint, Arguments And Inputs — Certified Argo Project Associate (CAPA) Exam Prep
- Template Types: Nine Ways To Do A Step — Certified Argo Project Associate (CAPA) Exam Prep
- WorkflowTemplates, ClusterWorkflowTemplates And templateRef — Certified Argo Project Associate (CAPA) Exam Prep
- Artifacts: Files That Outlive The Pod — Certified Argo Project Associate (CAPA) Exam Prep
- Argo CD: Components, Applications And Projects — Certified Argo Project Associate (CAPA) Exam Prep
- Sync: Manual Or Automated, Prune And Self-Heal — Certified Argo Project Associate (CAPA) Exam Prep
- Sync Phases, Waves And Hooks — Certified Argo Project Associate (CAPA) Exam Prep
- Helm, Kustomize And Applications With Several Sources — Certified Argo Project Associate (CAPA) Exam Prep
- ApplicationSets And The App Of Apps — Certified Argo Project Associate (CAPA) Exam Prep
- Health, Reconciliation And Fields Argo CD Should Ignore — Certified Argo Project Associate (CAPA) Exam Prep
- The Rollout: A Deployment That Can Stop Halfway — Certified Argo Project Associate (CAPA) Exam Prep
- Canary And Blue-Green: Weights, Routers And One Switch — Certified Argo Project Associate (CAPA) Exam Prep
- AnalysisTemplate And AnalysisRun: Letting Metrics Decide — Certified Argo Project Associate (CAPA) Exam Prep
- EventSource, EventBus, Sensor And Trigger — Certified Argo Project Associate (CAPA) Exam Prep
- Final Mock, Review And A Trap Sprint — Certified Argo Project Associate (CAPA) Exam Prep
- Zero-Trust Network Access & IdP Federation — Cloud Security & DevSecOps Engineering
- The Connector That Was Created Twice — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Threat Actors, Motivations & Cyber Kill Chain — Cybersecurity Fundamentals, GRC & Cryptography
- Run The Spine Service And Publish Its Port — Docker Architecture & Production Containers
- Building Routes with Controllers — Modern .NET Core, C# & Enterprise Microservices
- Comparing Controllers and Minimal APIs — Modern .NET Core, C# & Enterprise Microservices
- Role-Based and Policy-Based Authorization — Modern .NET Core, C# & Enterprise Microservices
- Same-Origin Policy, CORS Preflight, Credentials And Headers — Frontend Architecture & Web Platform
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform
- Session Architecture: HTTP-Only Cookies vs Tokens — Production Full-Stack Engineering
- Logs And Artifacts Without The Browser: REST And The gh CLI — GitHub Actions (GH-200) Exam Prep
- Secrets And Variables By Scope: Precedence, Access And The REST API — GitHub Actions (GH-200) Exam Prep
- Calling APIs with net/http Client — Concurrent Systems Programming with Go
- Serving HTTP with net/http Server — Concurrent Systems Programming with Go
- Controllers And Routing — Modern Java: Virtual Threads & High-Throughput Services
- Implementing An OpenAPI Contract — Modern Java: Virtual Threads & High-Throughput Services
- One Leaked Kubeconfig: How Far Does It Go? — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Seven Findings, Two Owners: The 4Cs And Shared Responsibility — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Same Rule, Two Kinds: Controls And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- How Thick Is The Wall? Isolation Techniques — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Pinned For Stability: Images, Registries And Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Overview Sprint: Four Findings Before The Auditor — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Eleven Months Of Yes: The API Server — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Copied From A Blog Post: The Kubelet — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Pod That Mounts The Node: Runtime, Pods And Storage — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Port 30080 On Every Node: kube-proxy, Networking And Clients — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Component Sprint: The Reference Build — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Created, But Never Running: Pod Security Admission — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- There Is No Users Table: Authentication — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Read-Only, Except Secrets: RBAC In Depth — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Encoded Is Not Hidden: Secrets — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Dash Too Many: Segmentation With Network Policy — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Fundamentals Sprint: Four Findings, Eight Questions — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Draw The Boundaries: Trust And Data Flow — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- What Outlives The Fix: Persistence And Privilege Escalation — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- The Report That Ate The Node: Denial Of Service And Malicious Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Pod Away: Network Attackers And Sensitive Data — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Four Alerts, One Incident: Observability And The Mesh — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Cluster's First Birthday: PKI And Connectivity — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Platform Sprint: Evidence, Order, Proof — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- HTTP Is Text: Requests, Status Codes And Headers — Linux Fundamentals & Systems Administration
- Server Actions: use server Directives & Mutations — Next.js 15 & Modern App Router Architecture
- Server Action Security: Zod Validation & Auth Gates — Next.js 15 & Modern App Router Architecture
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Streaming Endpoints: Server-Sent Events & NDJSON Feeds — Next.js 15 & Modern App Router Architecture
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Observability Versus Monitoring — Full-Stack Observability: Metrics, Tracing & Logging
- The Three Signals: Logs, Metrics And Traces — Full-Stack Observability: Metrics, Tracing & Logging
- The Prometheus Exposition Format — Full-Stack Observability: Metrics, Tracing & Logging
- Traces, Spans And Context Propagation — Full-Stack Observability: Metrics, Tracing & Logging
- Instrumenting A Service With Client Libraries — Full-Stack Observability: Metrics, Tracing & Logging
- Fifteen Traces For Six Bookings: Where Context Was Lost — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Ninety Minutes, No Question Count: Exam Strategy — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Two Names For One Fact: Semantic Conventions And Resources — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Traces From A Script Nobody Touched: Instrumentation Approaches — OpenTelemetry Certified Associate (OTCA) Exam Prep
- A Warning With An Address: Correlating Signals — OpenTelemetry Certified Associate (OTCA) Exam Prep
- A Library That Traces Nothing, Safely: API, SDK And Extension — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Two Spans, Four Requests: The Trace Data Model — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Three Hundred Milliseconds In One Place: Tracing In Code — OpenTelemetry Certified Associate (OTCA) Exam Prep
- A Histogram That Could Not Answer: Views — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Keep Your Logger: The Logs Bridge And Log Records — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Five Characters: Trace Context And Baggage — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Six Out Of Twelve At One In Four: Samplers — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Nine Lines, Five Bugs: Configuring The SDK — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Sixty Two New Names: Collector Components And Pipelines — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Five In, Fifty Two Out: Transforming Data — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Collector Sprint: Sixteen Predictions — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Fifty Four In, Two Out: Debugging A Pipeline — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Maintenance Sprint: Symptoms First — OpenTelemetry Certified Associate (OTCA) Exam Prep
- The Evening Before: Final Review — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Forty Seconds At Two: Push, Pull And Service Discovery — Prometheus Certified Associate (PCA) Exam Prep
- Observability Sprint: One Failed Checkout — Prometheus Certified Associate (PCA) Exam Prep
- Off By Five: What Prometheus Is Not For — Prometheus Certified Associate (PCA) Exam Prep
- The Server That Would Not Die: Selecting Data — Prometheus Certified Associate (PCA) Exam Prep
- Four Thousand Requests Vanished: Rates And Derivatives — Prometheus Certified Associate (PCA) Exam Prep
- Is The New Version Worse? Binary Operators And Matching — Prometheus Certified Associate (PCA) Exam Prep
- The Export That Failed Quietly: Timestamp Metrics — Prometheus Certified Associate (PCA) Exam Prep
- PromQL Sprint: Ten Queries At Minute Twenty Two — Prometheus Certified Associate (PCA) Exam Prep
- Milliseconds Versus Seconds: Naming Metrics And Labels — Prometheus Certified Associate (PCA) Exam Prep
- useActionState: Async Action Handlers And Pending States — React 19 & Modern Component Architecture
- The Threat Model Habit — Application Security & Threat Modeling for Engineers
- Why Secrets Leak — Application Security & Threat Modeling for Engineers
- Dynamic Scanning — Application Security & Threat Modeling for Engineers
- Simulation: Attacks In The Logs — CompTIA Security+ (SY0-801) Exam Prep
- Back Of The Envelope Estimation: Traffic And Throughput — Scalable System Design & Distributed Architecture
- Load Balancing And The Failure Modes It Introduces — Scalable System Design & Distributed Architecture
- Contract Testing Between Services — Automated Testing, TDD & Quality Engineering
- Literal Types: String, Number, Boolean Literals And const — Production TypeScript
- void, undefined And null: Exact Optional Property Types — Production TypeScript
- Const Type Parameters: Retaining Literal Types In Functions — Production TypeScript
- Union Utilities: Exclude, Extract, NonNullable And Awaited — Production TypeScript
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript
- Our Own Registry: Deploy, Push, Pull, Search And Delete — Docker Certified Associate (DCA) Exam Prep
- It Works On The Host: Publishing Ports And Tracing Connections — Docker Certified Associate (DCA) Exam Prep
References
- RFC 9110: HTTP Semantics, section 9 Methods
- RFC 5789: PATCH Method for HTTP
- MDN: HTTP request methods
- RFC 9110: Methods
- RFC 9110: HTTP Semantics (methods)
- curl manual
- RFC 9110: HTTP semantics
Certification courses
- AWS AIP-C01 course and practice exam: AI engineering with LLM apps, RAG and agents
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- CAPA course and practice exam: Certified Argo Project Associate
- CCDAK and CCAAK course and practice exams: Confluent Apache Kafka certifications
- GH-200 course and practice exam: GitHub Actions
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- OTCA course and practice exam: OpenTelemetry Certified Associate
- PCA course and practice exam: Prometheus Certified Associate
- CompTIA Security+ course and practice exam: SY0-801
- DCA course and practice exam: Docker Certified Associate