Module: Async::HTTP::Protocol::HTTP10

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

Constant Summary collapse

VERSION =
"HTTP/1.0"

Class Method Summary collapse

Class Method Details

.bidirectional?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/async/http/protocol/http10.rb', line 14

def self.bidirectional?
	false
end

.client(peer) ⇒ Object



22
23
24
25
26
# File 'lib/async/http/protocol/http10.rb', line 22

def self.client(peer)
	stream = IO::Stream.new(peer, sync: true)
	
	return HTTP1::Client.new(stream, VERSION)
end

.namesObject



34
35
36
# File 'lib/async/http/protocol/http10.rb', line 34

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

.server(peer) ⇒ Object



28
29
30
31
32
# File 'lib/async/http/protocol/http10.rb', line 28

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

.trailer?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/async/http/protocol/http10.rb', line 18

def self.trailer?
	false
end