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,
lib/async/http/protocol/http1/finishable.rb
Defined Under Namespace
Classes: Client, Connection, Finishable, Request, Response, Server
Constant Summary
collapse
- VERSION =
"HTTP/1.1"
Class Method Summary
collapse
Class Method Details
.bidirectional? ⇒ Boolean
18
19
20
|
# File 'lib/async/http/protocol/http1.rb', line 18
def self.bidirectional?
true
end
|
.client(peer) ⇒ Object
26
27
28
29
30
|
# File 'lib/async/http/protocol/http1.rb', line 26
def self.client(peer)
stream = ::IO::Stream(peer)
return HTTP1::Client.new(stream, VERSION)
end
|
.names ⇒ Object
38
39
40
|
# File 'lib/async/http/protocol/http1.rb', line 38
def self.names
["http/1.1", "http/1.0"]
end
|
.server(peer) ⇒ Object
32
33
34
35
36
|
# File 'lib/async/http/protocol/http1.rb', line 32
def self.server(peer)
stream = ::IO::Stream(peer)
return HTTP1::Server.new(stream, VERSION)
end
|
.trailer? ⇒ Boolean
22
23
24
|
# File 'lib/async/http/protocol/http1.rb', line 22
def self.trailer?
true
end
|