title: about http hijacking and keep-alive
body: <p>i use</p>
  
  <pre><code>resp, err := http.Get("http://example.com/")
  </code></pre>
  
  <p>get a http.Response, and i want to exactly write to a http handler, but only http.ResponseWriter, so i hijack it.</p>
  
  <pre><code>...
  webConn, webBuf, err := hj.Hijack()
  if err != nil {
      // handle error
  }
  defer webConn.Close()
  
  // Write resp
  resp.Write(webBuf)
  ...
  </code></pre>
  
  <p>Write raw request</p>
  
  <p>But When i hijack, http connection can't reuse (keep-alive), so it slow.</p>
  
  <p>How to solve?</p>
  
  <p>Thanks! Sorry for my pool English.</p>
  
  <p><strong>update 12/9</strong> 
  <img src="https://i.stack.imgur.com/u0r6U.png" alt="keepalive">
  <img src="https://i.stack.imgur.com/TT1qs.png" alt="keepalive2">
  keep-alive, It keep two tcp connection, and can reuse.</p>
  
  <p><img src="https://i.stack.imgur.com/TyGnY.png" alt="nokeepalive">
  <img src="https://i.stack.imgur.com/Mn81S.png" alt="nokeepalive2">
  but when i hijack, and conn.Close(), It can't reuse old connection, so it create a new tcp connection when i each refresh.</p>