Method: Async::HTTP::Protocol::HTTP11.server

Defined in:
lib/async/http/protocol/http11.rb

.server(peer, **options) ⇒ Object

Create a server for an inbound connection.



42
43
44
45
46
# File 'lib/async/http/protocol/http11.rb', line 42

def self.server(peer, **options)
	stream = ::IO::Stream(peer)
	
	return HTTP1::Server.new(stream, VERSION, **options)
end