GithubHelp home page GithubHelp logo

blog's Introduction

最近在看《图解HTTP》,如题,这个正好与http请求有关,也是面试中及其常见的题目

  1. 输入url后,客户端向服务端发起请求,浏览器解析url里的域名,并进行 DNS解析出对应ip,路由查找这个地址
  2. 找到ip后,tcp/ip建立连接,客户端发送请求的过程是在报文首部增加信息,服务端接收请求的过程是将报文首部增加的信息去掉
  3. 服务端收到请求后会将资源发送给客户端,此时客户端会去接收响应,浏览器对内容进行解析
  4. 若浏览器接收到的是html页面,解析过程: image
    • 构建dom
    • 构建css om
    • 整合domcss om,构建render
    • 布局render
    • 绘制render

注:有不足之处后续补足

blog's People

Contributors

tracysq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.