Method: Async::HTTP::Protocol::HTTP1.server

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

.server(stream) ⇒ Object

A server that supports both HTTP1.0 and HTTP1.1 semantics by detecting the version of the request. TODO Verify correct behaviour.



36
37
38
# File 'lib/async/http/protocol/http1.rb', line 36

def self.server(stream)
	Server.new(stream, VERSION)
end