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