Module: Async::HTTP::Protocol::HTTP11

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

Constant Summary collapse

VERSION =
"HTTP/1.1"

Class Method Summary collapse

Class Method Details

.bidirectional?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/async/http/protocol/http11.rb', line 29

def self.bidirectional?
	true
end

.client(stream) ⇒ Object



33
34
35
# File 'lib/async/http/protocol/http11.rb', line 33

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

.namesObject



41
42
43
# File 'lib/async/http/protocol/http11.rb', line 41

def self.names
	["http/1.1"]
end

.server(stream) ⇒ Object



37
38
39
# File 'lib/async/http/protocol/http11.rb', line 37

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