class Async::HTTP::Endpoint
def self.for(scheme, hostname, **options)
def self.for(scheme, hostname, **options) # TODO: Consider using URI.for once it becomes available: uri_klass = URI.scheme_list[scheme.upcase] || URI::HTTP self.new( uri_klass.new(scheme, nil, hostname, nil, nil, nil, nil, nil, nil), **options ) end