RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
発行日: 2014年6月
ステータス: 標準化過程 (RFC 9110により廃止)
著者: R. Fielding (編集者), J. Reschke (編集者)
概要 (Abstract)
Hypertext Transfer Protocol (HTTP) は、分散型・協調型のハイパーテキスト情報システムのためのステートレスなアプリケーション層プロトコルです。本文書は、リクエストメソッド、リクエストヘッダーフィールド、レスポンスステータスコード、レスポンスヘッダーフィールドによって表現されるHTTP/1.1メッセージのセマンティクス、メッセージのペイロード(メタデータとボディコンテンツ)、コンテンツネゴシエーションのメカニズムを定義します。
目次 (Table of Contents)
コアセクション (Core Sections)
-
- 1.1 適合性とエラー処理 (Conformance and Error Handling)
- 1.2 構文表記 (Syntax Notation)
-
- 3.1 表現メタデータ (Representation Metadata)
- 3.2 表現データ (Representation Data)
- 3.3 ペイロードセマンティクス (Payload Semantics)
- 3.4 コンテンツネゴシエーション (Content Negotiation)
-
4. リクエストメソッド (Request Methods) ⭐
- 4.1 概要 (Overview)
- 4.2 共通メソッドプロパティ (Common Method Properties)
- 4.2.1 安全なメソッド (Safe Methods)
- 4.2.2 冪等メソッド (Idempotent Methods)
- 4.2.3 キャッシュ可能メソッド (Cacheable Methods)
- 4.3 メソッド定義 (Method Definitions)
- 4.3.1 GET
- 4.3.2 HEAD
- 4.3.3 POST
- 4.3.4 PUT
- 4.3.5 DELETE
- 4.3.6 CONNECT
- 4.3.7 OPTIONS
- 4.3.8 TRACE
-
5. リクエストヘッダーフィールド (Request Header Fields)
- 5.1 制御 (Controls)
- 5.2 条件付き (Conditionals)
- 5.3 コンテンツネゴシエーション (Content Negotiation)
- 5.4 認証資格情報 (Authentication Credentials)
- 5.5 リクエストコンテキスト (Request Context)
-
6. レスポンスステータスコード (Response Status Codes)
- 6.1 ステータスコードの概要 (Overview of Status Codes)
- 6.2 情報レスポンス 1xx (Informational 1xx)
- 6.3 成功レスポンス 2xx (Successful 2xx)
- 6.4 リダイレクト 3xx (Redirection 3xx)
- 6.5 クライアントエラー 4xx (Client Error 4xx)
- 6.6 サーバーエラー 5xx (Server Error 5xx)
-
7. レスポンスヘッダーフィールド (Response Header Fields)
- 7.1 制御データ (Control Data)
- 7.2 検証ヘッダーフィールド (Validator Header Fields)
- 7.3 認証チャレンジ (Authentication Challenges)
- 7.4 レスポンスコンテキスト (Response Context)
-
- 11.1 規範的参考文献 (Normative References)
- 11.2 参考情報 (Informative References)
附属書 (Appendices)
- 附属書A. RFC 2616からの変更点 (Changes from RFC 2616)
- 附属書B. インポートされたABNF (Imported ABNF)
- 附属書C. 収集されたABNF (Collected ABNF)
- 附属書D. 索引 (Index)
著作権表示 (Copyright Notice)
Copyright (c) 2014 IETF Trust および文書著者として特定された者。全著作権所有。
関連リソース (Related Resources)
- 公式テキスト: RFC 7231 (TXT)
- 公式ページ: RFC 7231 DataTracker
- 廃止: RFC 2616
- 廃止者: RFC 9110 (HTTPセマンティクス)
主要機能 (Key Features)
HTTPメソッドプロパティ (HTTP Method Properties)
本文書は、HTTPメソッドの3つの中核的プロパティを定義します:
- 安全なメソッド (Safe Methods): サーバー状態を変更しない読み取り専用操作
- 冪等メソッド (Idempotent Methods): 複数の同一リクエストが単一リクエストと同じ効果を持つ
- キャッシュ可能メソッド (Cacheable Methods): レスポンスが保存および再利用可能
メソッド一覧 (Method Summary)
| メソッド | 安全 | 冪等 | キャッシュ可能 |
|---|---|---|---|
| GET | ✅ | ✅ | ✅ |
| HEAD | ✅ | ✅ | ✅ |
| POST | ❌ | ❌ | ⚠️ |
| PUT | ❌ | ✅ | ❌ |
| DELETE | ❌ | ✅ | ❌ |
| CONNECT | ❌ | ❌ | ❌ |
| OPTIONS | ✅ | ✅ | ❌ |
| TRACE | ✅ | ✅ | ❌ |