Module: Async::HTTP::Protocol::HTTP1

Defined in:
lib/async/http/protocol/http1.rb,
lib/async/http/protocol/http1/client.rb,
lib/async/http/protocol/http1/server.rb,
lib/async/http/protocol/http1/request.rb,
lib/async/http/protocol/http1/response.rb,
lib/async/http/protocol/http1/connection.rb

Defined Under Namespace

Classes: Client, Connection, Request, Response, Server

Constant Summary collapse

VERSION =
"HTTP/1.1"

Class Method Summary collapse

Class Method Details

.client(stream) ⇒ Object



30
31
32
# File 'lib/async/http/protocol/http1.rb', line 30

def self.client(stream)
	Client.new(stream, VERSION)
end

.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