HTTP Chunk Encoding and Transfer-Encoding: chunked in Practice
By Boris Fain · Updated October 19, 2026 In HTTP/1.1, a response must tell the client how many bytes are coming. You either set Content-Length (which means you must know the size before you start sending headers) or you close the connection (HTTP…