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
29 30 31 |
# File 'lib/async/http/protocol/http10.rb', line 29 def self.bidirectional? false end |
.client(peer) ⇒ Object
33 34 35 36 37 |
# File 'lib/async/http/protocol/http10.rb', line 33 def self.client(peer) stream = IO::Stream.new(peer, sync: false) return HTTP1::Client.new(stream, VERSION) end |
.names ⇒ Object
45 46 47 |
# File 'lib/async/http/protocol/http10.rb', line 45 def self.names ["http/1.0"] end |
.server(peer) ⇒ Object
39 40 41 42 43 |
# File 'lib/async/http/protocol/http10.rb', line 39 def self.server(peer) stream = IO::Stream.new(peer, sync: false) return HTTP1::Server.new(stream, VERSION) end |