Back to HTTP Headers
Response

HTTP Transfer-Encoding Header

Specifies the transfer encoding applied to the message body. Chunked encoding is used when the response size is not known in advance.

Purpose

Enables streaming of response data without knowing the total size beforehand, using chunked transfer encoding.

Transfer-Encoding: chunked Transfer-Encoding: gzip, chunked Transfer-Encoding: identity

Code Examples

See how to use the Transfer-Encoding header in different tools and languages.

curl -I https://api.example.com/stream
# Transfer-Encoding: chunked
# Note: No Content-Length header when using chunked

Related Headers

Test Your APIs

transfer-encoding headerhttp transfer-encodinghttp headers guide