class Async::HTTP::Proxy
def initialize(client, address, headers = nil)
-
headers
(Array
) -- an optional list of headers to use when establishing the connection. -
address
(String
) -- the address to connect to. -
client
(Async::HTTP::Client
) -- the client which will be used as a proxy server.
def initialize(client, address, headers = nil) @client = client @address = address @headers = ::Protocol::HTTP::Headers[headers].freeze end