Method: Async::HTTP::Client#initialize
- Defined in:
- lib/async/http/client.rb
#initialize(endpoint, protocol = nil, authority = nil, retries: 3, **options) ⇒ Client
Returns a new instance of Client.
30 31 32 33 34 35 36 37 38 |
# File 'lib/async/http/client.rb', line 30 def initialize(endpoint, protocol = nil, = nil, retries: 3, **) @endpoint = endpoint @protocol = protocol || endpoint.protocol @authority = || endpoint.hostname @retries = retries @pool = connect(**) end |