class Async::HTTP::Protocol::HTTP

def server(peer, **options)

@parameter options [Hash] Options to pass to the protocol, keyed by protocol class.
@parameter peer [IO] The peer to communicate with.

Create a server for an inbound connection. Able to detect HTTP1 and HTTP2.
def server(peer, **options)
	stream = IO::Stream(peer)
	protocol = protocol_for(stream)
	options = options[protocol] || {}
	
	return protocol.server(stream, **options)
end