title: How google chrome processes html pages?
body: <p>Browser - Google chrome <br>
  Programming language - python</p>
  <p><strong>prehistory</strong></p>
  <p>So, i request a page using google chrome web browser, i stop this request from sending to network using windivert ( pydivert ), i use my scripts to send this request trough my vpn server, and then vpn server sends me answer ( html page ).</p>
  <pre class="lang-s prettyprint-override"><code>s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
  s.bind((HOST, PORT))
  s.listen()
  conn, addr = s.accept()
  s.setblocking(False)
  conn.sendall(data)
  </code></pre>
  <p>Then on a client</p>
  <pre><code>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  s.connect((HOST, PORT))
  while True:
   data = s.recv(4096)
   if data:
    data2 = data.decode('utf-8')
    print(data2)
    break
  </code></pre>
  <p>I receive a html.
  <strong>So, the question is, how do i use this html? How do i &quot;answer to a request&quot; of this browser, so it loads this page?</strong></p>
  <p>So, what do i do? Some kind of - adding this page to google chrome cache?</p>