--- title: HTTP 请求方法 slug: Web/HTTP/Methods tags: - Browser support for JavaScript APIs - HTTP - 'HTTP Methods: GET vs. POST' - Methods - Reference - Safe and Idempotent Methods - methods for HTTP/1.1 - '词汇表:幂等 可缓存' translation_of: Web/HTTP/Methods ---
{{HTTPSidebar}}
HTTP 定义了一组请求方法, 以表明要对给定资源执行的操作。指示针对给定资源要执行的期望动作. 虽然他们也可以是名词, 但这些请求方法有时被称为HTTP动词. 每一个请求方法都实现了不同的语义, 但一些共同的特征由一组共享:: 例如一个请求方法可以是 {{glossary("safe")}}, {{glossary("idempotent")}}, 或 {{glossary("cacheable")}}.
GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
规范 | 标题 | 注解 |
---|---|---|
{{RFC("7231", "Request methods", "4")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content | Specifies GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE. |
{{RFC("5789", "Patch method", "2")}} | PATCH Method for HTTP | Specifies PATCH. |
{{Compat}}