class Async::HTTP::Proxy
def self.tcp(client, host, port, headers = nil)
- See: IO::Endpoint#tcp -
Parameters:
-
headers
(Array
) -- an optional list of headers to use when establishing the connection. -
port
(String
) -- the port number to connect to. -
host
(String
) -- the hostname or address to connect to. -
client
(Async::HTTP::Client
) -- the client which will be used as a proxy server.
def self.tcp(client, host, port, headers = nil) self.new(client, "#{host}:#{port}", headers) end