chunked transfer encoding

An HTTP/1.1 way of sending a body of unknown length as a series of pieces, each preceded by its size, ending with an empty piece.

In more detail

It lets a server start streaming a response before it knows how big it will be. HTTP/2 and HTTP/3 do not use it because their framing already marks where a body ends.

Example

Node.js uses it automatically when you write a body without setting Content-Length.

Related terms

Taught in

References