module Async::HTTP::Protocol::HTTP2
Constants
- AUTHORITY
- CLIENT_SETTINGS
- CONNECTION
- CONTENT_LENGTH
- HTTPS
- METHOD
- PATH
- PROTOCOL
- SCHEME
- SERVER_SETTINGS
- STATUS
- TRAILER
- VERSION
Public Class Methods
bidirectional?()
click to toggle source
# File lib/async/http/protocol/http2.rb, line 32 def self.bidirectional? true end
client(peer, settings = CLIENT_SETTINGS)
click to toggle source
# File lib/async/http/protocol/http2.rb, line 54 def self.client(peer, settings = CLIENT_SETTINGS) stream = IO::Stream.new(peer, sync: true) client = Client.new(stream) client.send_connection_preface(settings) client.start_connection return client end
names()
click to toggle source
# File lib/async/http/protocol/http2.rb, line 76 def self.names ["h2"] end
server(peer, settings = SERVER_SETTINGS)
click to toggle source
# File lib/async/http/protocol/http2.rb, line 65 def self.server(peer, settings = SERVER_SETTINGS) stream = IO::Stream.new(peer, sync: true) server = Server.new(stream) server.read_connection_preface(settings) server.start_connection return server end
trailer?()
click to toggle source
# File lib/async/http/protocol/http2.rb, line 36 def self.trailer? true end