?
This document uses PHP Chinese website manual Release
所述 trailers 響應(yīng)頭允許發(fā)送方包括為了提供可能,而所述消息體被發(fā)送,諸如消息完整性檢查,數(shù)字簽名,或后處理狀態(tài)動(dòng)態(tài)地生成的元數(shù)據(jù)在分塊消息的末尾附加字段。
TE
請(qǐng)求頭需要被設(shè)置為 “trailers”,允許 trailer。
Header type | Response header |
---|---|
Forbidden header name | yes |
Trailer: header-names
header-names
HTTP 頭字段將出現(xiàn)在分塊消息的尾部。這些標(biāo)題字段是不允許的:
消息成幀頭(例如Transfer-Encoding
和Content-Length
),
路由頭(例如Host
),
請(qǐng)求改性劑(例如,控制和條件,比如Cache-Control
,Max-Forwards
或TE
),
驗(yàn)證標(biāo)頭(例如Authorization
或Set-Cookie
),
或者Content-Encoding
,Content-Type
,Content-Range
,和Trailer
本身。
在這個(gè)例子中,Expires
標(biāo)題用在分塊消息的末尾,并作為尾部標(biāo)題。
HTTP/1.1 200 OK Content-Type: text/plain Transfer-Encoding: chunked Trailer: Expires7\r\n Mozilla\r\n 9\r\n Developer\r\n 7\r\n Network\r\n 0\r\n Expires: Wed, 21 Oct 2015 07:28:00 GMT\r\n \r\n
Specification | Title |
---|---|
RFC 7230, section 4.4: Trailer | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
RFC 7230, section 4.1.2: Chunked trailer part | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |