Yêu cầu thg 8 8, 2017 8:47 SA 905 0 1
  • 905 0 1
+13

Sự khác biệt giữa HTTP 2.0 và HTTP 1.1

Chia sẻ
  • 905 0 1

Mọi người cho mình hỏi sự khác biệt giữa HTTP 2.0 và HTTP 1.1 là gì ạ? HTTP 2.0 liệu có thay thế được web socket hay không và đã ai dùng thử HTTP 2.0 trong dự án của mình chưa ạ?

1 CÂU TRẢ LỜI


Đã trả lời thg 8 8, 2017 9:12 SA
Đã được chấp nhận
+18

First of all, HTTP/2 only supports encrypted connections (TLS), even though it is not required according to specs, there are no servers or clients which support unencrypted HTTP/2. The second most significant improvement is multiplexing support: servers can now parallel multiple responses within single connection (check demo at https://http2.akamai.com/demo). And the last major change is support of Server Push feature, which allows to inform client of needed resources before HTML has been loaded.

You can read all specs and FAQ at https://http2.github.io

P. S. Viblo, actually, uses HTTP/2 both for web pages and web sockets.

Chia sẻ
Avatar KhanhWAP @riqozy
thg 8 8, 2017 9:23 SA

That's great!

Avatar dinhhoanglong91 @dinhhoanglong91
thg 8 8, 2017 9:32 SA

Great! Thank you very much.

Avatar kopitop @kopitop
thg 8 9, 2017 2:36 SA

Nice example!

Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí