class Async::HTTP::Client
def initialize(endpoint, protocol = endpoint.protocol, scheme = endpoint.scheme, authority = endpoint.authority, retries: 3, connection_limit: nil)
* If a request fails, it will retry it up to N times if it was idempotent.
* If there are already connections, it will reuse it.
* If there are no connections, it will create one.
Provides a robust interface to a server.
def initialize(endpoint, protocol = endpoint.protocol, scheme = endpoint.scheme, authority = endpoint.authority, retries: 3, connection_limit: nil) @endpoint = endpoint @protocol = protocol @retries = retries @pool = make_pool(connection_limit) @scheme = scheme @authority = authority end