class Async::HTTP::Client
def initialize(endpoint, protocol: endpoint.protocol, scheme: endpoint.scheme, authority: endpoint.authority, retries: DEFAULT_RETRIES, connection_limit: DEFAULT_CONNECTION_LIMIT)
-
authority(String) -- The default authority to set to requests. -
scheme(String) -- The default scheme to set to requests. -
protocol(Protocol::HTTP1 | Protocol::HTTP2 | Protocol::HTTPS) -- the protocol to use. -
endpoint(Endpoint) -- the endpoint to connnect to.
def initialize(endpoint, protocol: endpoint.protocol, scheme: endpoint.scheme, authority: endpoint.authority, retries: DEFAULT_RETRIES, connection_limit: DEFAULT_CONNECTION_LIMIT) @endpoint = endpoint @protocol = protocol @retries = retries @pool = make_pool(connection_limit) @scheme = scheme @authority = authority end