module Async::HTTP::Protocol::HTTP2

def self.bidirectional?

def self.bidirectional?
	true
end

def self.client(stream, settings = CLIENT_SETTINGS)

def self.client(stream, settings = CLIENT_SETTINGS)
	client = Client.new(stream)
	
	client.send_connection_preface(settings)
	client.start_connection
	
	return client
end

def self.names

def self.names
	["h2"]
end

def self.server(stream, settings = SERVER_SETTINGS)

def self.server(stream, settings = SERVER_SETTINGS)
	server = Server.new(stream)
	
	server.read_connection_preface(settings)
	server.start_connection
	
	return server
end