module Async::HTTP::Protocol::HTTP1
Constants
- VERSION
Public Class Methods
bidirectional?()
click to toggle source
# File lib/async/http/protocol/http1.rb, line 32 def self.bidirectional? true end
client(peer)
click to toggle source
# File lib/async/http/protocol/http1.rb, line 40 def self.client(peer) stream = IO::Stream.new(peer, sync: true) return HTTP1::Client.new(stream, VERSION) end
names()
click to toggle source
# File lib/async/http/protocol/http1.rb, line 52 def self.names ["http/1.1", "http/1.0"] end
server(peer)
click to toggle source
# File lib/async/http/protocol/http1.rb, line 46 def self.server(peer) stream = IO::Stream.new(peer, sync: true) return HTTP1::Server.new(stream, VERSION) end
trailer?()
click to toggle source
# File lib/async/http/protocol/http1.rb, line 36 def self.trailer? true end