module Async::HTTP::Protocol::Defaulton

def self.extended(base)

def self.extended(base)
	base.instance_variable_set(:@default, base.new)
end

def client(peer, **options)

Create a client for an outbound connection, using the default instance.
def client(peer, **options)
	default.client(peer, **options)
end

def names

@returns [Array] The names of the supported protocol, used for Application Layer Protocol Negotiation (ALPN), using the default instance.
def names
	default.names
end

def server(peer, **options)

Create a server for an inbound connection, using the default instance.
def server(peer, **options)
	default.server(peer, **options)
end