這篇文檔會從技術和協(xié)議層面介紹http2。文檔起源于2014年4月我在斯德哥爾摩做了一次相關的演講,在那之后我對演講內容的細節(jié)進行了一些解釋和補充,從而寫出了這篇文檔。
正式版http2規(guī)格標準叫做RFC 7540,發(fā)布于2015年5月15日:http://www.rfc-editor.org/rfc/rfc7540.txt
如果你有在這篇文章中發(fā)現(xiàn)任何我的失誤造成的錯誤或疏漏,請幫我指正。我會在后續(xù)版本中修改。
為了讓閱讀體驗更流暢,在這篇文章中我會使用“http2”來指代這一新協(xié)議,但請記住該協(xié)議的正式名字是HTTP/2。
這篇文檔版本為1.12,發(fā)布于2015年5月21日。
1.1. 關于作者
我的名字叫做Daniel Stenberg,在Mozilla工作。在過去20年,我一直致力于開源事業(yè),參與了多個網絡方面的項目??赡芪易顝V為人知的身份是curl和libcurl的首席開發(fā)者。同時,我也參與了IETF HTTPbis工作組多年,工作在HTTP 1.1和http2標準化的一線.
1.2. 幫助我!
如果你在該文檔里面發(fā)現(xiàn)任何錯誤、疏漏,請發(fā)送給我一份相關段落更改后的版本,我會進行修正并且注明所有對文檔有貢獻的人!希望這份文檔能越來越好。
這篇文檔可以在http://daniel.haxx.se/http2下載。
1.3. 許可證
這篇文檔基于Createive Commons Attribution 4.0發(fā)布: http://creativecommons.org/licenses/by/4.0/
http://wiki.jikexueyuan.com/project/http-2-explained/images/license.png" alt="" />
1.4. 文檔歷史
該文檔的第一版發(fā)布于2014年4月25日。下面是最近主要改動的更新歷史。
Version 1.12:
- 1.1: HTTP/2 is now in an official RFC
- 6.5.1: link to the HPACK RFC
- 9.1: mention the Firefox 36+ config switch for http2
- 12.1: Added section about QUIC
Version 1.11:
- Lots of language improvements mostly pointed out by friendly contributors
- 8.3.1: mention nginx and Apache httpd specific acitivities
Version 1.10:
- 1: the protocol has been “okayed”
- 4.1: refreshed the wording since 2014 is last year
- front: added image and call it “http2 explained” there, fied link
- 1.4: added document history section
- many spelling and grammar mistakes corrected
- 14: added thanks to bug reporters
- 2.4: (better) labels for the HTTP growth graph
- 6.3: corrected the wagon order in the multiplexed train
- 6.5.1: HPACK draft-12
Version 1.9: February 11, 2015
- Updated to HTTP/2 draft-17 and HPACK draft-11
- Added section "10. http2 in Chromium" (== one page longer now)
- Lots of spell fies
- At 30 implementations now
- 8.5: added some current usage numbers
- 8.3: mention internet explorer too
- 8.3.1 "missing implementations" added
- 8.4.3: mention that TLS also increases success rate
Version 1.8: January 15th, 2015
- Compressed the images better, leading to a much smaller PDF
- Updated to draft-16 and hpack-10
- Replaced several images
- Linkifid many URLs
- Added a few questions in 8.4
- Mentions IETF Last Call