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

[软技能] 第1127天 请说说HTTP协议的优点和缺点各是什么? #5075

Open
haizhilin2013 opened this issue May 16, 2022 · 1 comment
Labels
软技能 软技能

Comments

@haizhilin2013
Copy link
Collaborator

第1127天 请说说HTTP协议的优点和缺点各是什么?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the 软技能 软技能 label May 16, 2022
@qdzhouz
Copy link

qdzhouz commented May 17, 2022

http的优点

  1. http的灵活性高,可扩展性强,从http1.0到http1.1再到http2.x,http协议一直在进行扩展新的属性。
  2. 可靠传输,因为http协议是基于tcp协议的一种应用层协议,tcp协议就是可靠传输协议。
  3. 请求应答,有来有回。
  4. 无状态的,每一个请求都是相互独立的,默认不需要保存上下文的信息。

http的缺点

  1. 明文传输不安全
  2. 复用一个TCP连接,会发生对头阻塞情况。
  3. 无状态的,在长链接的时候,需要保存大量的上下文,以避免传输大量重复信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
软技能 软技能
Projects
None yet
Development

No branches or pull requests

2 participants