/
967.txt
145 lines (120 loc) · 6.15 KB
/
967.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[19] [[応答メッセージ]]の[[ヘッダー]]を、[DFN[[RUBYB[[[応答ヘッダー]]]@en[response header]]]]といいます。
* 仕様書
[REFS[
- [17] [CITE@en[RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content]] ([TIME[2014-08-07 05:54:02 +09:00]] 版) <https://tools.ietf.org/html/rfc7231#section-7>
]REFS]
* 一覧
[18] [[HTTPヘッダーの一覧]]を参照してください。
* 歴史
[15] [[RFC 2616]] までは[[応答メッセージ]]の[[ヘッダー]]のうち、
[[一般ヘッダー]]と[[実体ヘッダー]]を除いたものを[[応答ヘッダー]]と呼んでいましたが
(世間一般での用法とずれていました)、 [[RFC 7231]] ではそのような分類はされなくなっています。
**HTTP 応答頭欄
[1] 応答 (response) 頭欄には、[[応答]]に関する情報を持つ[[頭欄]]が分類されます。
[14]
[[実体頭欄]]の一覧は、[[HTTP//頭欄]]を参照して下さい。
-[2] [CODE[Warning]] 欄は [[RFC2068]] では応答頭欄でしたが、 [[RFC2616]]
で[[一般頭欄]]に変更されました。
-[3] [CODE[Accept-Ranges]] 欄は RFC 2068 の [[ABNF]] では欠落しています。
- [4] [CODE[ETag]] 欄は RFC 2068 では[[実体頭欄]]でしたが、 RFC 2616 で応答頭欄に分類されます。
-[5] [CODE[DAV]] 欄は [[RFC2518]] では分類なし。
-[13] [CODE(HTTP)[Query-UTF-8]] 欄は[[要求頭欄]]かつ応答頭欄です。
[FIG(quote)[
[FIGCAPTION[
[16] RFC 1945 (HTTP/1.0); RFC 2068・2616 (HTTP/1.1) 6.2 Response Header Fields
]FIGCAPTION]
> The [INS[{2068,2616}]] response[INS[-]]header fields allow the server to pass additional
information about the response which cannot be placed in the Status-Line. These header fields give information about the server and about
further access to the resource identified by the Request-URI.
応答頭欄で、サーバーは [CODE(ABNF)[[[Status-Line]]]]
に入れることのできない応答についての追加の情報を渡すことができます。
応答頭欄はサーバーについての情報および [CODE(ABNF)[[[Request-URI]]]]
で識別される[[資源]]への更なる接続についての情報を与えます。
[DEL[
[DEL[
>[INS[{1945}]]
-
[PRE[
Response-Header = Location ; Section 10.11
| Server ; Section 10.14
| WWW-Authenticate ; Section 10.16
]PRE]
]DEL]
[INS[
>[INS[{2068}]]
-
[PRE[
response-header = Age ; Section 14.6
| Location ; Section 14.30
| Proxy-Authenticate ; Section 14.33
| Public ; Section 14.35
| Retry-After ; Section 14.38
| Server ; Section 14.39
| Vary ; Section 14.43
| Warning ; Section 14.45
| WWW-Authenticate ; Section 14.46
]PRE]
]INS]
]DEL]
[INS[
>[INS[{2616}]]
-
[PRE[
response-header = Accept-Ranges ; Section 14.5
| Age ; Section 14.6
| ETag ; Section 14.19
| Location ; Section 14.30
| Proxy-Authenticate ; Section 14.33
| Retry-After ; Section 14.37
| Server ; Section 14.38
| Vary ; Section 14.44
| WWW-Authenticate ; Section 14.47
]PRE]
]INS]
> [DEL[Response-Header]] [INS[Response-header]] field names can be extended reliably only in
combination with a change in the protocol version. However, new or
experimental header fields [DEL[may]] [INS[MAY]] be given the semantics of response[INS[-]]header fields if all parties in the communication recognize them to
be response[INS[-]]header fields. Unrecognized header fields are treated
as [DEL[Entity-Header]] [INS[entity-header]] fields.
応答頭欄名は、プロトコルの版の変更と組合せてのみ確実に拡張できます。
しかし、新しいあるいは実験的な頭欄は、
通信のすべての当事者がこれを応答頭欄であると認識すれば、
応答頭欄の意味を与えても'''構いません'''。
認識できない頭欄は[[実体頭欄]]として扱われます。
]FIG]
** RTSP 応答頭欄
[6]
,[[Location]] ,"[RFC 2326]"
,[[Proxy-Authenticate]],"[RFC 2326]"
,[[Range:]] * ,"[RFC 2326]"
,[[Retry-After:]] ,"[RFC 2326]"
,[[RTP-Info:]] ,"[RFC 2326]"
,[[Scale:]] ,"[RFC 2326]"
,[[Server:]] ,"[RFC 2326]"
,[[Session:]] * ,"[RFC 2326]"
,[[Transport:]] * ,"[RFC 2326]"
,[[Unsupported:]] ,"[RFC 2326]"
,[[Vary:]] ,"[RFC 2326]"
,[[WWW-Authenticate:]],"[RFC 2326]"
[7] * のついた欄は[[要求頭欄]]かつ応答頭欄に分類されています。
** SIP 応答頭欄
[8]
,[[Allow:]] ,"[RFC 2543], **"
,[[Authorization-Info:]],"[RFC 3261]"
,[[Min-Expires:]] ,[RFC 3261]
,[[P-Assosiated-URI:]],[RFC 3455]
,[[Proxy-Authenticate:]],"[RFC 2543], [RFC 3261]"
,[[Retry-After:]] ,"[RFC 2543], [RFC 3261]"
,[[RSeq:]] ,[RFC 3262]
,[[Security-Server:]] ,[RFC 3329]
,[[Server:]] ,"[RFC 2543], [RFC 3261]"
,[[Unsupported:]] ,"[RFC 2543], [RFC 3261]"
,[[Warning:]] ,"[RFC 2543], [RFC 3261]"
,[[WWW-Authenticate:]],"[RFC 2543], [RFC 3261]"
[12] [CODE[**]] がついた欄は、
[[RFC3261]] で[[要求]]でも使えるようになりました。
* 関連
[20] [[要求メッセージ]]の[[ヘッダー]]のことを[[要求ヘッダー]]といいます。
[[ヘッダー]]には[[要求ヘッダー]]としてのみ使うことができるもの、
[[応答ヘッダー]]としてのみ使うことができるもの、
[[要求ヘッダー]]としても[[応答ヘッダー]]としても使うことができるものがあります。