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

第167题(2020-03-06):nodejs从接收到请求到返回给页面经历了什么? #169

Open
qappleh opened this issue Mar 6, 2020 · 1 comment

Comments

@qappleh
Copy link
Owner

qappleh commented Mar 6, 2020

No description provided.

@QDHello
Copy link

QDHello commented Mar 9, 2020

①浏览器输入网址
②浏览器通过用户在地址栏中输入的URL构建HTTP请求报文
③浏览器发送DNS解析请求,将域名解析成对应的IP地址
④浏览器将报文发送给服务器
⑤服务器接受并解析请求报文,
⑥服务器处理用户请求,并将处理结果封装成HTTP响应报文
⑦服务器将HTTP响应报文返回给浏览器
⑧浏览器接收响应报文并解析
⑨浏览器解析HTML页面并展示,在解析时遇到新的资源将再次发起请求
⑩最终生成了一个完整页面

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

No branches or pull requests

2 participants