Transfer-Encoding
Indicates encoding for transfer (e.g., chunked). Chunked allows streaming without Content-Length.
BothSyntax
Transfer-Encoding: <encoding>Example values
| Value | Explanation |
|---|---|
| chunked | Body sent in chunks |
| gzip, chunked | Compressed and chunked |
cURL usage
curl -N https://example.com/stream # Chunked response
Common mistakes
Content-Length and chunked together; not supporting chunked for streaming.