Module: Async::HTTP::Protocol::HTTP10
- Defined in:
- lib/async/http/protocol/http10.rb
Constant Summary collapse
- VERSION =
"HTTP/1.0"
Class Method Summary collapse
- .bidirectional? ⇒ Boolean
- .client(peer) ⇒ Object
- .names ⇒ Object
- .server(peer) ⇒ Object
- .trailer? ⇒ Boolean
Class Method Details
.bidirectional? ⇒ Boolean
15 16 17 |
# File 'lib/async/http/protocol/http10.rb', line 15 def self.bidirectional? false end |
.client(peer) ⇒ Object
23 24 25 26 27 |
# File 'lib/async/http/protocol/http10.rb', line 23 def self.client(peer) stream = ::IO::Stream(peer) return HTTP1::Client.new(stream, VERSION) end |
.names ⇒ Object
35 36 37 |
# File 'lib/async/http/protocol/http10.rb', line 35 def self.names ["http/1.0"] end |
.server(peer) ⇒ Object
29 30 31 32 33 |
# File 'lib/async/http/protocol/http10.rb', line 29 def self.server(peer) stream = ::IO::Stream(peer) return HTTP1::Server.new(stream, VERSION) end |
.trailer? ⇒ Boolean
19 20 21 |
# File 'lib/async/http/protocol/http10.rb', line 19 def self.trailer? false end |