-
Notifications
You must be signed in to change notification settings - Fork 4
/
371.txt
57 lines (37 loc) · 2.31 KB
/
371.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[13] [DFN[[RUBYB[疑似ヘッダー]@en[pseudo-header]]]]は、
[[対象URL]]、[[要求メソッド]]、[[状態符号]]を表す特別な[[ヘッダー]]です。
* 仕様書
[REFS[
- [1] [CITE@en[RFC 7540 - Hypertext Transfer Protocol Version 2 (HTTP/2)]] ([TIME[2015-05-15 10:14:54 +09:00]] 版) <https://tools.ietf.org/html/rfc7540#section-8.1.2.1>
]REFS]
* 意味
[3] [DFN[[RUBYB[疑似ヘッダー欄]@en[pseudo-header field]]]]は、
[[対象URL]]、[[要求メソッド]]、[[状態符号]]を表すものです [SRC[>>1]]。
;; [2] [[HTTP/1.1]] [[以下]]の[[開始行]]に相当します [SRC[>>1]]。
[5] [[疑似ヘッダー]]は、[[HTTPヘッダー]]ではありません [SRC[>>1]]。
* 構文
[4] [[疑似ヘッダー]]の名前は、 [CODE[[[:]]]] から始まります [SRC[>>1]]。
;; [6] [CODE[[[:]]]] は [[HTTP/1.1]] [[以下]]では[[ヘッダー名]]と値の区切り文字で、
[[ヘッダー名]]には使えませんでした。
[11] [[疑似ヘッダー]]は、 [[header block]] の通常の[[ヘッダー]]の前になければ[['''なりません''']] [SRC[>>1]]。
* 文脈
[7] [[エンドポイント]]は、[[HTTP/2]] で定義されていない[[疑似ヘッダー]]を[[生成]]しては[['''なりません''']] [SRC[>>1]]。
[8] [[疑似ヘッダー]]は、その定義されている文脈でのみ妥当であり、
[[要求]]用のものは[[応答]]に含まれては[['''ならず''']]、
[[応答]]用のものは[[要求]]に含まれては[['''なりません''']] [SRC[>>1]]。
[9] [[疑似ヘッダー]]は [[trailer]] に含まれては[['''なりません''']] [SRC[>>1]]。
* 処理
[10] 未定義や非妥当な[[疑似ヘッダー]]は、[[奇形]]として扱わなければ[['''なりません''']] [SRC[>>1]]。
[12] 通常の[[ヘッダー]]より後の[[疑似ヘッダー]]は、[[奇形]]として扱わなければ[['''なりません''']] [SRC[>>1]]。
* 疑似ヘッダーの一覧
[14] [[要求]]には次の[[疑似ヘッダー]]があります。
[FIG(short list)[
- [CODE(HTTP)@en[[[:authority]]]]
- [CODE(HTTP)@en[[[:method]]]]
- [CODE(HTTP)@en[[[:path]]]]
- [CODE(HTTP)@en[[[:scheme]]]]
]FIG]
[15] [[応答]]には次の[[疑似ヘッダー]]があります。
[FIG(short list)[
- [CODE(HTTP)@en[[[:status]]]]
]FIG]