HTTP/2

Version 2 of the Hypertext Transfer Protocol used by the World Wide Web


title: "HTTP/2" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["hypertext-transfer-protocol", "application-layer-protocols", "internet-properties-established-in-2015"] description: "Version 2 of the Hypertext Transfer Protocol used by the World Wide Web" topic_path: "technology/networking" source: "https://en.wikipedia.org/wiki/HTTP/2" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Version 2 of the Hypertext Transfer Protocol used by the World Wide Web ::

::data[format=table title="Infobox protocol"]

FieldValue
standard
developerIETF
introdate
newerHTTP/3
::

| standard = | developer = IETF | introdate = | newer = HTTP/3

HTTP/2 (originally named HTTP/2.0) is a major revision of the HTTP network protocol used by the World Wide Web. It was derived from the earlier experimental SPDY protocol, originally developed by Google. HTTP/2 was developed by the HTTP Working Group (also called httpbis, where "bis" means "twice" in Latin) of the Internet Engineering Task Force (IETF). HTTP/2 is the first new version of HTTP since HTTP/1.1, which was standardized in in 1997. The Working Group presented HTTP/2 to the Internet Engineering Steering Group (IESG) for consideration as a Proposed Standard in December 2014, and IESG approved it to publish as Proposed Standard on February 17, 2015 (and was updated in February 2020 in regard to TLS 1.3 and again in June 2022). The initial HTTP/2 specification was published as RFC 7540 on May 14, 2015.

The standardization effort was supported by the Chrome, Opera, Firefox, Internet Explorer 11, Safari, Amazon Silk, and Edge browsers. Most major browsers had added HTTP/2 support by the end of 2015. About 97% of web browsers used have the capability (and 100% of "tracked desktop" web browsers). , 36% (after topping out at just over 50%) of the top 10 million websites support HTTP/2.

Its successor is HTTP/3, a major revision that builds on the concepts established by HTTP/2.

Goals

The working group charter mentions several goals and issues of concern:

Differences from HTTP/1.1

The changes do not require any changes to how existing web applications work, but new applications can take advantage of new features for increased speed. HTTP/2 leaves all of HTTP/1.1's high-level semantics, such as methods, status codes, header fields, and URIs, the same. What is new is how the data is framed and transported between the client and the server.

Websites that are efficient minimize the number of requests required to render an entire page by minifying (reducing the amount of code and packing smaller pieces of code into bundles, without reducing its ability to function) resources such as images and scripts. However, minification is not necessarily convenient nor efficient and may still require separate HTTP connections to get the page and the minified resources. HTTP/2 allows the server to "push" content, that is, to respond with data for more queries than the client requested. This allows the server to supply data it knows a web browser will need to render a web page, without waiting for the browser to examine the first response, and without the overhead of an additional request cycle.

Additional performance improvements in the first draft of HTTP/2 (which was a copy of SPDY) come from multiplexing of requests and responses to avoid some of the head-of-line blocking problem in HTTP 1 (even when HTTP pipelining is used), header compression, 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 chunked transfer encoding mechanism, as it provides its own, more efficient mechanisms for data streaming.

History

Genesis in and later differences from SPDY

SPDY (pronounced like "speedy") was a previous HTTP-replacement protocol developed by a research project spearheaded by Google. Primarily focused on reducing latency, SPDY uses the same TCP pipe but different protocols to accomplish this reduction. The basic changes made to HTTP/1.1 to create SPDY included "true request pipelining without FIFO restrictions, message framing mechanism to simplify client and server development, mandatory compression (including headers), priority scheduling, and even bi-directional communication".

The HTTP Working Group considered Google's SPDY protocol, Microsoft's HTTP Speed+Mobility proposal (SPDY based), and Network-Friendly HTTP Upgrade. In July 2012, Facebook provided feedback on each of the proposals and recommended HTTP/2 be based on SPDY. The initial draft of HTTP/2 was published in November 2012 and was based on a straight copy of SPDY.

The biggest difference between HTTP/1.1 and SPDY was that each user action in SPDY is given a "stream ID", meaning there is a single TCP channel connecting the user to the server. SPDY split requests into either control or data, using a "simple to parse binary protocol with two types of frames". SPDY showed evident improvement over HTTP, with a new page load speedup ranging from 11% to 47%.

The development of HTTP/2 used SPDY as a jumping-off point. Among the many detailed differences between the protocols, the most notable is that HTTP/2 uses a fixed Huffman code-based header compression algorithm, instead of SPDY's dynamic stream-based compression. This helps to reduce the potential for compression oracle attacks on the protocol, such as the CRIME attack.

On February 9, 2015, Google announced plans to remove support for SPDY in Chrome in favor of support for HTTP/2. This took effect starting with Chrome 51.

Development milestones

::data[format=table]

DateMilestone
author=Nottingham, Markdate=June 7, 2014
January 23, 2008First HTTP Security Properties Internet Draft
Early 2012Call for Proposals for HTTP 2.0
October 14 – November 25, 2012Working Group Last Call for HTTP/1.1 Revision
November 28, 2012First WG draft of HTTP 2.0, based upon draft-mbelshe-httpbis-spdy-00
Held/EliminatedWorking Group Last Call for HTTP Security Properties
September 2013Submit HTTP/1.1 Revision to IESG for consideration as a Proposed Standard
February 12, 2014IESG approved HTTP/1.1 Revision to publish as a Proposed Standard
url=https://www.ietf.org/mail-archive/web/ietf-announce/current/msg12871.htmltitle=RFC 7230 on Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing
last=Nottinghamfirst=Mark
December 16, 2014Submit HTTP/2 to IESG for consideration as a Proposed Standard
December 31, 2014 – January 14, 2015IETF Last Call for HTTP/2
January 22, 2015IESG telechat to review HTTP/2 as Proposed Standard
author=The IESGtitle=Protocol Action: 'Hypertext Transfer Protocol version 2' to Proposed Standard (draft-ietf-httpbis-http2-17.txt)
May 14, 2015Publish HTTP/2 as
February 2020: HTTP/2 with TLS 1.3
June 2022: Further refinements
April 2024DOS issues with CONTINUATION frames https://kb.cert.org/vuls/id/421644
::

Encryption

HTTP/2 is defined for both HTTP URIs (without TLS encryption, a configuration which is abbreviated as h2c) and HTTPS URIs (over TLS using ALPN extension where TLS 1.2 or newer is required, a configuration which is abbreviated as h2).

Although the standard itself does not require usage of encryption, all major client implementations (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari) have stated they will only support HTTP/2 over TLS, which makes encryption de facto mandatory.

Criticisms

Development process

The FreeBSD and Varnish developer Poul-Henning Kamp asserts that the standard was prepared on an unrealistically short schedule, ruling out any basis for the new HTTP/2 other than the SPDY protocol and resulting in other missed opportunities for improvement. Kamp criticizes the protocol itself for being inconsistent and having needless, overwhelming complexity. He also states that the protocol violates the protocol layering principle, for example by duplicating flow control that belongs in the transport layer (TCP). He also suggested that the new protocol should have removed HTTP Cookies, introducing a breaking change.

Encryption

Initially, some members of the Working Group tried to introduce an encryption requirement in the protocol. This faced criticism.

Critics stated that encryption has non-negligible computing costs and that many HTTP applications actually have no need for encryption and their providers have no desire to spend additional resources on it. Encryption proponents have stated that this encryption overhead is negligible in practice. Poul-Henning Kamp has criticized the IETF for hastily standardizing Google's SPDY prototype as HTTP/2 due to political considerations. The criticism of the agenda of mandatory encryption within the existing certificate framework is not new, nor is it unique to members of the open-source community a Cisco employee stated in 2013 that the present certificate model is not compatible with small devices like routers, because the present model requires not only annual enrollment and remission of non-trivial fees for each certificate, but must be continually repeated on an annual basis. In the end the Working Group did not reach consensus over the mandatory encryption, although most client implementations require it, which makes encryption a de facto requirement.

The HTTP/2 protocol also faced criticism for not supporting opportunistic encryption, a measure against passive monitoring similar to the STARTTLS mechanism that has long been available in other Internet protocols like SMTP. Critics have stated that the HTTP/2 proposal goes in violation of IETF's own "Pervasive Monitoring Is an Attack", which also has a status of Best Current Practice 188. RFC7258/BCP188 mandates that pervasive monitoring be considered as an attack, and protocols designed by IETF should take steps to protect against passive monitoring (for example, through the use of opportunistic encryption). A number of specifications for opportunistic encryption of HTTP/2 have been provided, of which draft-nottingham-http2-encryption was adopted as an official work item of the working group, leading to the publication of in May 2017.

TCP head-of-line blocking

Although the design of HTTP/2 effectively addresses the HTTP-transaction-level head-of-line blocking problem by allowing multiple concurrent HTTP transactions, all those transactions are multiplexed over a single TCP connection, meaning that any packet-level head-of-line blocking of the TCP stream simultaneously blocks all transactions being accessed via that connection. This head-of-line blocking in HTTP/2 is now widely regarded as a design flaw, and much of the effort behind QUIC and HTTP/3 has been devoted to reduce head-of-line blocking issues.

Server-side support

Main article: Comparison of web server software

Server software

The following web servers support HTTP/2:

Content delivery networks

  • Akamai was the first major CDN to support HTTP/2 and HTTP/2 Server Push.
  • Microsoft Azure supports HTTP/2.
  • PageCDN supports HTTP/2 out of the box and provides user-interface to setup HTTP/2 Server Push in CDN dashboard.
  • CDN77 supports HTTP/2 using nginx (August 20, 2015).
  • Cloudflare supports HTTP/2 using nginx with SPDY as a fallback for browsers without support, whilst maintaining all security and performance services. Cloudflare was the first major CDN to support HTTP/2 Server Push.
  • AWS CloudFront supports HTTP/2 since September 7, 2016.
  • Fastly supports HTTP/2 including Server Push.
  • Imperva Incapsula CDN supports HTTP/2. The implementation includes support for WAF and DDoS mitigation features as well.
  • KeyCDN supports HTTP/2 using nginx (October 6, 2015). HTTP/2 Test is a test page to verify if your server supports HTTP/2.
  • BrandSSL supports HTTP/2.
  • Voxility supports HTTP/2 using nginx since July, 2016. The implementation comes in support for Cloud DDoS mitigation services.
  • StackPath supports HTTP/2.

Implementations

References

References

  1. Bright, Peter. (February 18, 2015). "HTTP/2 finished, coming to browsers within weeks".
  2. Cimpanu, Catalin. (Nov 12, 2018). "HTTP-over-QUIC to be renamed HTTP/3". ZDNet.
  3. (November 29, 2014). "Hypertext Transfer Protocol version 2: draft-ietf-httpbis-http2-16". HTTPbis Working Group.
  4. "IETF HTTP Working Group".
  5. "History for draft-ietf-httpbis-http2-16". IETF.
  6. Raymor, Brian. (August 6, 2014). "Wait for it – HTTP/2 begins Working Group Last Call!". Microsoft Open Technologies.
  7. (May 2015). "RFC 7540 - Hypertext Transfer Protocol Version 2 (HTTP/2)". IETF.
  8. ""HTTP/2" {{!}} Can I use... Support tables for HTML5, CSS3, etc".
  9. "Usage of HTTP/2 for websites". W3Techs.
  10. Bishop, Mike. (2019-07-09). "Hypertext Transfer Protocol Version 3 (HTTP/3)". Ietf Datatracker.
  11. Cimpanu, Catalin. (September 26, 2019). "Cloudflare, Google Chrome, and Firefox add HTTP/3 support".
  12. "HTTP (httpbis)". [[Internet Engineering Task Force]] Datatracker.
  13. Ilya Grigorik. "High Performance Browser Networking". O'Reilly Media, Inc..
  14. Pratt, Michael. "Apiux".
  15. Dio Synodinos. (November 2012). "HTTP 2.0 First Draft Published". C4Media Inc..
  16. Javier Garza. (October 2017). "How does HTTP/2 solve the Head of Line blocking (HOL) issue".
  17. (May 2015). "Hypertext Transfer Protocol Version 2 (HTTP/2)".
  18. Sebastian Anthony. (March 28, 2012). "S&M vs. SPDY: Microsoft and Google battle over the future of HTTP 2.0". ExtremeTech.
  19. Grigorik, Ilya. "Life beyond HTTP 1.1: Google's SPDY".
  20. (March 29, 2012). "Proposal for a Network-Friendly HTTP Upgrade". [[Internet Engineering Task Force]].
  21. Doug Beaver. (July 15, 2012). "HTTP2 Expression of Interest". W3C.
  22. Dio Synodinos. (2012-11-30). "HTTP/2 First Draft Published". InfoQ.
  23. Ilya, Grigorik. (2015). "HTTP/2 : a new excerpt from high performance browser networking". O'Reilly Media.
  24. "SPDY: An experimental protocol for a faster web". The Chromium Projects.
  25. (2015-02-09). "Hello HTTP/2, Goodbye SPDY". Chromium Blog.
  26. "API Deprecations and Removals in Chrome 51".
  27. (June 7, 2016). "Supporting HTTP/2 for Google Chrome Users {{!}} NGINX".
  28. Nottingham, Mark. (June 7, 2014). "RFC2616 is Dead".
  29. (December 20, 2007). "HTTP/1.1, part 1: URIs, Connections, and Message Parsing: draft-ietf-httpbis-p1-messaging-00".
  30. (January 23, 2008). "Security Requirements for HTTP: draft-ietf-httpbis-security-properties-00.txt".
  31. Nottingham, Mark. (January 24, 2012). "Rechartering HTTPbis".
  32. Nottingham, Mark. (October 14, 2012). "Working Group Last Call for HTTP/1.1 p1 and p2".
  33. Nottingham, Mark. (October 23, 2012). "Second Working Group Last Call for HTTP/1.1 p4 to p7".
  34. (November 28, 2012). "SPDY Protocol: draft-ietf-httpbis-http2-00". HTTPbis Working Group.
  35. Nottingham, Mark. (November 30, 2012). "First draft of HTTP/2".
  36. (June 6, 2014). "Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing".
  37. (October 21, 2013). "Last Call: <draft-ietf-httpbis-p1-messaging-24.txt> (Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing) to Proposed Standard". The IESG.
  38. (February 12, 2014). "Protocol Action: 'Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing' to Proposed Standard (draft-ietf-httpbis-p1-messaging-26.txt)". The IESG.
  39. ((The RFC Editor Team)). (June 6, 2014). "RFC 7230 on Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing".
  40. Nottingham, Mark. (August 1, 2014). "Working Group Last Call: draft-ietf-httpbis-http2-14 and draft-ietf-httpbis-header-compression-09". HTTP Working Group.
  41. (2014). "Last Call: <draft-ietf-httpbis-http2-16.txt> (Hypertext Transfer Protocol version 2) to Proposed Standard from The IESG on 2014-12-31". Internet Engineering Task Force.
  42. "IESG Agenda: 2015-01-22". IETF.
  43. The IESG. (February 17, 2015). "Protocol Action: 'Hypertext Transfer Protocol version 2' to Proposed Standard (draft-ietf-httpbis-http2-17.txt)".
  44. ((The RFC Editor Team)). (May 14, 2015). "RFC 7540 on Hypertext Transfer Protocol Version 2 (HTTP/2)".
  45. (July 2014). "RFC 7301 - Transport Layer Security (TLS) Application-Layer Protocol Negotiation Extension". IETF.
  46. "HTTP/2 Frequently Asked Questions". IETF HTTP Working Group.
  47. "Networking/http2". MozillaWiki.
  48. "HTTP/2 Implementation Status".
  49. Grigorik, Ilya. "Is TLS Fast Yet?".
  50. Kamp, Poul-Henning. (January 6, 2015). "HTTP/2.0 – The IETF is Phoning It In (Bad protocol, bad politics)".
  51. Kamp, Poul-Henning. (2015). "Http/2.0". Communications of the ACM.
  52. Kamp, Poul-Henning. (January 7, 2015). "Re: Last Call: <draft-ietf-httpbis-http2-16.txt> (Hypertext Transfer Protocol version 2) to Proposed Standard".
  53. Lear, Eliot. (August 25, 2013). "Mandatory encryption is theater".
  54. Murenin, Constantine A.. (January 9, 2015). "Re: Last Call: <draft-ietf-httpbis-http2-16.txt> (Hypertext Transfer Protocol version 2) to Proposed Standard".
  55. Paul Hoffman. "Minimal Unauthenticated Encryption (MUE) for HTTP-2: draft-hoffman-httpbis-minimal-unauth-enc-01". [[Internet Engineering Task Force]].
  56. "Opportunistic Encryption for HTTP URIs: draft-nottingham-http2-encryption-03". [[Internet Engineering Task Force]].
  57. "Opportunistic Security for HTTP: draft-ietf-httpbis-http2-encryption-01". [[Internet Engineering Task Force]].
  58. Huston, Geoff. (2019-03-04). "A Quick Look at QUIC".
  59. Gal, Shauli. (2017-06-22). "The Full Picture on HTTP/2 and HOL Blocking".
  60. "http/2 module for apache httpd".
  61. "Apache 2.4.17 release changelog".
  62. Matthew Steele. (June 19, 2014). "mod_spdy is now an Apache project". Google Developers Blog.
  63. "Log of /httpd/mod_spdy".
  64. "Apache Tomcat Migration".
  65. (September 21, 2015). "Apache Traffic Server Downloads".
  66. Server, Caddy Web. (March 23, 2016). "Caddy 2 - The Ultimate Server with Automatic HTTPS".
  67. (2016-08-02). "Charles 4 has HTTP/2".
  68. (September 22, 2015). "3 Simple Steps to Bring HTTP/2 Performance to Legacy Web Applications".
  69. (November 27, 2015). "Sucuri += HTTP/2 — Announcing HTTP/2 Support".
  70. "Goodbye SPDY, Hello HTTP/2". F5 Networks.
  71. Risov Chakrabortty. (July 5, 2016). "New features, capabilities added to Barracuda Web Application Firewall". Barracuda Networks.
  72. "H2O - the optimized HTTP/2 server".
  73. (November 2017). "What's New in HAProxy 1.8".
  74. (May 28, 2015). "Jetty change log". Eclipse Foundation..
  75. "Feature #2813: Support for HTTP/2 protocol". Lighttpd.
  76. (April 17, 2015). "LSWS 5.0 Is Out – Support for HTTP/2, ESI, LiteMage Cache".
  77. (October 8, 2014). "HTTP/2: The Long-Awaited Sequel". Microsoft Corporation.
  78. "Netty.news: Netty 4.1.0.Final released".
  79. (2015-09-22). "nginx changelog".
  80. (December 4, 2018). "Changes with nginx 1.14.2".
  81. Foundation, Node js. (November 20, 2018). "Node v8.13.0 (LTS)".
  82. (July 26, 2016). "Node http2".
  83. (August 15, 2017). "Node v8.4.0 (Current)".
  84. "ASP.NET Core 2.2.0-preview1: HTTP/2 in Kestrel".
  85. (February 26, 2015). "OpenLiteSpeed 1.4.5 change log". LiteSpeed Technologies, Inc..
  86. (August 22, 2017). "Pulse Virtual Traffic Manager".
  87. (July 20, 2015). "Radware Combines an Integrated HTTP/2 Gateway with its Leading Fastview Technology to Provide Web Server Platforms Increased Acceleration".
  88. (March 23, 2016). "www.shimmercat.com".
  89. "Why PageCDN, and what problem does it solve?".
  90. "HTTP/2 is here! Goodbye SPDY? Not quite yet".
  91. (April 28, 2016). "Announcing Support for HTTP/2 Server Push".
  92. "Amazon CloudFront now supports HTTP/2".
  93. (June 30, 2016). "Announcing Limited Availability for HTTP/2".
  94. "HTTP/2 is here: What You Need to Know".
  95. (2016-08-03). "HTTP/2 more at risk to cyber attacks?".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

hypertext-transfer-protocolapplication-layer-protocolsinternet-properties-established-in-2015