class HTTP::Request

def proxy_connect_headers

Headers to send with proxy connect request
def proxy_connect_headers
  connect_headers = HTTP::Headers.coerce(
    "Host" => headers["Host"],
    "User-Agent" => headers["User-Agent"]
  )
  connect_headers["Proxy-Authorization"] = proxy_authorization_header if using_authenticated_proxy?
  connect_headers
end