api: YAML JSON TOON Database version: 1.0.0 format: json dataset: slug: http-methods title: HTTP Methods description: Complete reference of HTTP methods with descriptions and typical use cases. summary: "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_when[2]: You need the purpose of an HTTP method or whether it carries a body.,You are checking which methods a client may send. caveats[2]: "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." related[4]: http-methods-reference,http-request-headers,http-response-headers,http-status-codes-complete category: Web Technologies category_slug: web-technologies tags: "web,http,methods,api,rest" view_count: 0 entry_count: 9 fields[3]{section,field,type,example}: data,method,string,GET data,description,string,"Retrieves a resource. Safe, idempotent. Should …" data,request_body,boolean,"false" data[9]{method,description,request_body}: GET,"Retrieves a resource. Safe, idempotent. Should not modify server state.",false POST,Submits data to the server. Not idempotent. Creates a new resource.,true PUT,Replaces a resource at a specific URI. Idempotent.,true PATCH,Partially updates a resource. Not idempotent in general.,true DELETE,Removes a resource at a specific URI. Idempotent.,false HEAD,"Same as GET but returns only headers, no body. Safe, idempotent.",false OPTIONS,Returns the allowed HTTP methods for a URL. Used for CORS preflight.,false TRACE,Echoes back the received request. Used for debugging. Rarely implemented.,false CONNECT,Establishes a tunnel to the server. Used for HTTPS via proxy.,false