module Async::HTTP::Protocol::HTTP2
def self.client(peer, settings: CLIENT_SETTINGS)
@parameter peer [IO] The peer to communicate with.
Create a client for an outbound connection.
def self.client(peer, settings: CLIENT_SETTINGS) stream = ::IO::Stream(peer) client = Client.new(stream) client.send_connection_preface(settings) client.start_connection return client end