HTTP/2 & SPDY
Last updated
Was this helpful?
Last updated
Was this helpful?
Create a negotiation mechanism that allows clients and servers to elect to use HTTP 1.1, 2.0, or potentially other non-HTTP protocols.
Maintain high-level compatibility with HTTP 1.1 (for example with , , , and most ).
Decrease to improve page load speed in by considering:
of
of requests
fixing the problem in HTTP 1.x
multiple requests over a single connection
Support common existing use cases of HTTP, such as desktop web browsers, mobile web browsers, web APIs, at various scales, , servers, , and .
Hashing Token. Web socket Token
bearer token
OAuth2 accessCode
features that distinguishes HTTP/1.1 and HTTP/2 is the binary framing layer, which can be thought of as a part of the application layer in the internet protocol stack. As opposed to HTTP/1.1, which keeps all requests and responses in plain text format, HTTP/2 uses the binary framing layer to encapsulate all messages in binary format, while still maintaining HTTP semantics, such as verbs, methods, and headers. An application level API would still create messages in the conventional HTTP formats, but the underlying layer would then convert these messages into binary. This ensures that web applications created before HTTP/2 can continue functioning as normal when interacting with the new protocol.
The conversion of messages into binary allows HTTP/2 to try new approaches to data delivery not available in HTTP/1.1, a contrast that is at the root of the practical differences between the two protocols. The next section will take a look at the delivery model of HTTP/1.1, followed by what new models are made possible by HTTP/2.
HTTP/2 (which was a copy of SPDY) come from of requests and responses to avoid some of the problem in HTTP 1 (even when is used), header , and prioritization of requests. However, as HTTP/2 runs on top of a single TCP connection there is still potential for head-of-line blocking to occur if TCP packets are lost or delayed in transmission. HTTP/2 no longer supports HTTP 1.1's mechanism, as it provides its own, more efficient, mechanisms for data streaming.