{{HTTPSidebar}}
The Trailer request header allows the sender to include additional fields at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, digital signature, or post-processing status.
The {{HTTPHeader("TE")}} request header needs to be set to "trailers" to allow trailer fields.
Header type | {{Glossary("Response header")}} |
---|---|
{{Glossary("Forbidden header name")}} | no |
Syntax
Trailer: header-names
Directives
header-names
- HTTP header fields which will be present in the trailer part of chunked messages.
Specifications
Specification | Title |
---|---|
{{RFC("7230", "Trailer", "4.4")}} | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
{{RFC("7230", "Chunked trailer part", "4.1.2")}} | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
Browser compatibility
The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out https://github.com/mdn/browser-compat-data/README.md and send us a pull request
{{Compat}}
See also
- {{HTTPHeader("Transfer-Encoding")}}
- {{HTTPHeader("TE")}}