framing

The rule that marks where one message or record ends and the next begins in a stream of bytes.

In more detail

Content-Length frames a whole HTTP/1.1 body, newline-delimited JSON frames records by line, server-sent events frame events with a blank line, and HTTP/2 and WebSockets split data into binary frames. Without a framing rule, a receiver cannot tell a complete message from a partial one.

Related terms

Taught in

References