#?SuikaWiki/0.9 page-icon="HTTP" [[#comment]] * 仕様書から ** RFC 2295 (HTTP 透過内容折衝) 10 Content negotiation responses > If a request on a transparently negotiated resource yields a response with a 2xx status code or any 3xx status code except 304, this response MUST always be either a list response, a choice response, or an adhoc response. These responses MUST always include a TCN header which specifies their type. Transparently negotiated responses with other status codes MAY also include a TCN header. [[透過内容折衝資源]]の要求が [CODE(HTTP)[[[2xx]]]] 状態符号又は [CODE(HTTP)[[[304]]]] を除く [CODE(HTTP)[[[3xx]]]] 状態符号の応答を得る場合、 この応答は常に[[目録応答]]か[[選択応答]]か[[臨時応答]]のいずれかでなければ'''なりません'''。 これらの応答は常にその型を指定した [CODE(HTTP)[[[TCN]]]] 頭を含まなければ'''なりません'''。 他の状態符号の透過折衝資源も [CODE(HTTP)[TCN]] 頭を含んでも'''構いません'''。 > The conditions under which the different content negotiation responses may be sent are defined in section 12.1 for origin servers and in section 13 for proxies. > After having constructed a list, choice, or adhoc response, a server MAY process any If-No-Match or If-Range headers in the request message and shorten the response to a 304 (Not Modified) or 206 (Partial Content) response, following the rules in the HTTP/1.1 specification [1]. In this case, the entity tag of the shortened response will identify it indirectly as a list, choice, or adhoc response. 目録応答, 選択応答または臨時応答を構築した後に、 サーバーは要求メッセージの [CODE(HTTP)[[[If-No-Match]]]] 頭又は [CODE(HTTP)[[[If-Range]]]] 頭を [[HTTP/1.1]] 仕様書に従って処理してこの応答を [CODE(HTTP)[[[304]]]] (未修正) 応答又は [CODE(HTTP)[[[306]]]] (部分内容) 応答に短しめても'''構いません'''。 この場合、短しめた応答の[[実体札]]は間接的に目録応答, 選択応答または臨時応答を識別することとなります。 ***10.1 List response [CODE(WikiPage)[[[目録応答]>>2]]]を参照。 ***10.2 Choice response [CODE(WikiPage)[[[選択応答]>>2]]]を参照。 ***10.3 Adhoc response →[CODE(WikiPage)[[[臨時応答]>>3]]] ***10.4 Reusing the Alternates header [CODE(WikiPage)[[[Alternates]>>6]]]を参照。 ***10.5 Extracting a normal response from a choice response [CODE(WikiPage)[[[選択応答]>>]]]を参照。 ***10.6 Elaborate Vary headers →[CODE(WikiPage)[[[Vary]>>32]]] を参照。 ***10.7 Adding an Expires header for HTTP/1.0 compatibility →[CODE(WikiPage)[[[Expires]>>13]]] を参照。 ***10.8 Negotiation on content encoding →[CODE(WikiPage)[[[内容符号化]>>1]]]を参照。 ** RFC の部分の License [[RFCのライセンス]] * メモ