class Async::HTTP::Client
def initialize(endpoint, protocol: endpoint.protocol, scheme: endpoint.scheme, authority: endpoint.authority, retries: DEFAULT_RETRIES, **options)
-
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, **options) @endpoint = endpoint @protocol = protocol @retries = retries @pool = make_pool(**options) @scheme = scheme @authority = authority end