码迷,mamicode.com
首页 > Web开发 > 详细

关于 HTTP2 新特性

时间:2016-07-08 13:37:32      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:

Binary Frames

HTTP2 在TCP层之上 HTTP下增加了Binary Frames协议, 基于该协议HTTP Request/Response 可以被分拆成由Frame组成的Stream在TCP上传输。

技术分享

Header Compression -- HPACK

使用HPACk压缩http header成二进制格式,使用静态和动态索引表来压缩Header内容。 对动态header value使用huffman算法编码成二进制格式。

详细信息可以参考:

Static Table Definition -- http://http2.github.io/http2-spec/compression.html#static.table.definition

Huffman Coding -- http://http2.github.io/http2-spec/compression.html#huffman.code

Stream & Multipexing

在同一条TCP链路上可以根据Stream的优先级,并发的错序发送不同Stream Frames

技术分享

Server Push

Server可以就一个请求主动推送多个应答给客户端

 技术分享

参考

0. HTTP 2

https://hpbn.co/http2/

1. HTTP2 RFC

https://tools.ietf.org/html/rfc7540#page-12

2. HPACK

http://http2.github.io/http2-spec/compression.html

关于 HTTP2 新特性

标签:

原文地址:http://www.cnblogs.com/anor/p/5652964.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!