class Async::HTTP::URLEndpoint
def build_endpoint(endpoint = nil)
def build_endpoint(endpoint = nil) endpoint ||= Async::IO::Endpoint.tcp(hostname, port, tcp_options) if secure? # Wrap it in SSL: return Async::IO::SSLEndpoint.new(endpoint, ssl_context: self.ssl_context, hostname: self.hostname ) end return endpoint end