Slide 13
Slide 13 text
HTTP/2
There are only three new concepts that you need to understand :-
Binary Protocol :
HTTP/1 is a text-based protocol, so requests are parsed using string operations.
HTTP/2 uses a binary protocol, which means that requests and responses are sent as binary data rather than
plain text. This binary protocol uses predefined offsets to indicate the start and end of different parts of the
request or response, making it much less prone to ambiguity and desync attacks.
Message Length :
In HTTP/1, the length of each message body is indicated via the Content-Length or Transfer-Encoding header.
In HTTP/2, the message body is composed of data frames, which have a built-in length field. This means that
the length of the message body is explicitly specified in the data frames, making it clear and unambiguous.