Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP协议的不同版本的主要特点有哪些? #180

Open
yanlele opened this issue Mar 26, 2023 · 1 comment
Open

HTTP协议的不同版本的主要特点有哪些? #180

yanlele opened this issue Mar 26, 2023 · 1 comment
Labels
网络 web 网络相关
Milestone

Comments

@yanlele
Copy link
Member

yanlele commented Mar 26, 2023

HTTP协议的不同版本的主要特点如下表所示:

版本 发布时间 主要特点
HTTP/0.9 1991年 只支持GET方法,没有Header和Body
HTTP/1.0 1996年 引入Header、POST方法、响应码、缓存等特性
HTTP/1.1 1999年 引入持久连接、管道化请求、分块传输编码、Host头、缓存控制等特性
HTTP/2 2015年 引入二进制分帧、头部压缩、流量控制、多路复用等特性
HTTP/3 2021年 引入QUIC协议,改进网络传输性能

需要注意的是,HTTP/1.x和HTTP/2都支持TLS加密传输,即HTTPS协议。HTTP/3则是基于QUIC协议的,使用TLS 1.3进行加密传输。

@yanlele yanlele added the 网络 web 网络相关 label Mar 26, 2023
@yanlele yanlele added this to the milestone Mar 26, 2023
@yanlele
Copy link
Member Author

yanlele commented Mar 26, 2023

可以参考这个文档, 非常经典:https://juejin.cn/post/7079936383925616653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
网络 web 网络相关
Projects
None yet
Development

No branches or pull requests

1 participant