/
656.txt
43 lines (35 loc) · 2.07 KB
/
656.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
* 仕様書
[REFS[
- [4] [CITE@en[RFC 2295 - Transparent Content Negotiation in HTTP]] ([TIME[2014-08-31 19:36:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2295#section-8.5>
- [22] [CITE@en[RFC 2295 - Transparent Content Negotiation in HTTP]] ([TIME[2014-08-31 19:36:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2295#section-10>
]REFS]
* 応答
[14] [[透過的折衝可能資源]]では、 [CODE(HTTP)[[[2xx]]]] と [CODE(HTTP)[[[3xx]]]]
の[[応答]]には [CODE(HTTP)@en[[[TCN:]]]] [[ヘッダー]]と
[CODE(HTTP)@en[[[list]]]]、[CODE(HTTP)@en[[[choice]]]]、[CODE(HTTP)@en[[[adhoc]]]]
のいずれかを含めなければ[['''なりません''']] [SRC[>>4, >>22]]。ただし
[CODE(HTTP)[[[304]]]] には含めても含めなくても構いません [SRC[>>4, >>22]]。
[15] [[透過的折衝可能資源]]の他の[[応答]]には、 >>14 の3つの値以外の
[CODE(HTTP)@en[[[TCN:]]]] [[ヘッダー]]を含めて構いません [SRC[>>4, >>22]]。
* 歴史
[FIG(quote)[
[FIGCAPTION[
[1] [CITE@en[RFC 2295 - Transparent Content Negotiation in HTTP]] ([TIME[2014-08-31 19:36:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2295#section-2.2>
]FIGCAPTION]
>
:transparently negotiable resource:
A resource, identified by a single URI, which has multiple
representations (variants) associated with it. When servicing a
request on its URI, it allows selection of the best representation
using the transparent content negotiation mechanism. A
transparently negotiable resource always has a [[variant list]] bound
to it, which can be represented as an Alternates header (defined in section 8.3).
>
:透過折衝可能資源:
単一の [[URI]] で識別され、関連付けられた複数の[[表現]]
([[変種]]) を持った[[資源]]。
その URI で要求を service するときは、
[[透過内容折衝]]機構を使って最善の表現を選択することができる。
透過折衝可能資源は常にそれに束縛された[[変種一覧]]を持っていて、
この一覧は [CODE(HTTP)[[[Alternates]]]] 頭として表現できる。
]FIG]