class Async::HTTP::Endpoint
def initialize(url, endpoint = nil, **options)
(**alpn_protocols)-
the(Array) -- alpn protocols to negotiate. -
the(OpenSSL::SSL::SSLContext) -- context to use for TLS. -
the(String) -- hostname to use, overrides the URL hostname. -
the(Integer) -- port to bind to, overrides the URL port. -
the(String) -- scheme to use, overrides the URL scheme.
def initialize(url, endpoint = nil, **options) super(**options) raise ArgumentError, "URL must be absolute (include scheme, host): #{url}" unless url.absolute? @url = url @endpoint = endpoint end