Skip to main content

RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

Published (发布日期): June 2014
Status (状态): Standards Track (Obsoleted by RFC 9110)
Authors (作者): R. Fielding (Ed.), J. Reschke (Ed.)


Abstract (摘要)

The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document defines the semantics of HTTP/1.1 messages, as expressed by request methods, request header fields, response status codes, and response header fields, along with the payload of messages (metadata and body content) and mechanisms for content negotiation.

超文本传输协议(HTTP)是一个用于分布式、协作式超文本信息系统的无状态应用层协议。本文档定义了HTTP/1.1消息的语义,包括请求方法、请求头字段、响应状态码和响应头字段所表达的语义,以及消息载荷(元数据和主体内容)和内容协商机制。


Table of Contents (目录)

Core Sections (核心章节)

Appendices (附录)


Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved.


  • Official Text (官方文本): RFC 7231 (TXT)
  • Official Page (官方页面): RFC 7231 DataTracker
  • Obsoletes (废弃): RFC 2616
  • Obsoleted By (被废弃): RFC 9110 (HTTP Semantics)

Key Features (关键特性)

HTTP Method Properties (HTTP方法属性)

本文档详细定义了HTTP方法的三个核心属性:

  1. Safe Methods (安全方法): 只读操作,不会改变服务器状态
  2. Idempotent Methods (幂等方法): 多次执行与单次执行效果相同
  3. Cacheable Methods (可缓存方法): 响应可以被缓存

Method Summary (方法摘要)

MethodSafeIdempotentCacheable
GET
HEAD
POST⚠️
PUT
DELETE
CONNECT
OPTIONS
TRACE