           headers:           response.headers
           content:           null
           redirectURL:       response.headers['location']
-          headersSize:       headersSize(response.headers)
+          headersSize:       @resources.headersSize(response.headers)
           bodySize:          bdy.length
         # Add to HAR
         @resources.browser.har.log.entries.push(entry)

    @h1_agent = undefined
    @h1s_agent = undefined
    @connIndex = 0


  # Make an HTTP request (also supports file: protocol).
  #

      return

    #console.log 'REQUEST '+Date.now()+' '+request.url
    if protocol == 'h2'
      httpRequest.headers = HTTP2.convertHeadersToH2(request.headers)
      if httpRequest.plain
        req = HTTP2.raw.request httpRequest
      else
        req = HTTP2.request httpRequest
    else if protocol == 'http/1.1'

      if ! @resources.h1_total_connections[httpRequest.host+httpRequest.port]
        @resources.h1_avail_connections[httpRequest.host+httpRequest.port] = 0
