module Async::HTTP::Protocol::HTTPS
def self.client(peer)
def self.client(peer) protocol_for(peer).client(peer) end
def self.names
def self.names HANDLERS.keys.compact end
def self.protocol_for(peer)
def self.protocol_for(peer) # alpn_protocol is only available if openssl v1.0.2+ name = peer.alpn_protocol Console.logger.debug(self) {"Negotiating protocol #{name.inspect}..."} if protocol = HANDLERS[name] return protocol else raise ArgumentError, "Could not determine protocol for connection (#{name.inspect})." end end
def self.server(peer)
def self.server(peer) protocol_for(peer).server(peer) end