class Async::HTTP::Proxy

def self.endpoint(client, endpoint, headers = [])

Parameters:
  • headers (Array) -- an optional list of headers to use when establishing the connection.
  • endpoint (Async::HTTP::Endpoint) -- the endpoint to connect to.
  • client (Async::HTTP::Client) -- the client which will be used as a proxy server.
def self.endpoint(client, endpoint, headers = [])
	proxy = self.new(client, endpoint.authority(false), headers)
	
	return proxy.endpoint(endpoint.url)
end