module Async::HTTP::Protocol::HTTP2

def self.server(peer, settings: SERVER_SETTINGS)

@parameter options [Hash] Options to pass to the server instance.
@parameter peer [IO] The peer to communicate with.

Create a server for an inbound connection.
def self.server(peer, settings: SERVER_SETTINGS)
	stream = ::IO::Stream(peer)
	server = Server.new(stream)
	
	server.read_connection_preface(settings)
	server.start_connection
	
	return server
end