Module: Async::HTTP::Protocol::HTTP2::WithPush

Defined in:
lib/async/http/protocol/http2.rb

Constant Summary collapse

CLIENT_SETTINGS =
HTTP2::CLIENT_SETTINGS.merge(
	::HTTP::Protocol::HTTP2::Settings::ENABLE_PUSH => 1,
)

Class Method Summary collapse

Class Method Details

.client(stream, settings = CLIENT_SETTINGS) ⇒ Object



66
67
68
# File 'lib/async/http/protocol/http2.rb', line 66

def self.client(stream, settings = CLIENT_SETTINGS)
	HTTP2.client(stream, settings)
end

.server(stream, settings = SERVER_SETTINGS) ⇒ Object



70
71
72
# File 'lib/async/http/protocol/http2.rb', line 70

def self.server(stream, settings = SERVER_SETTINGS)
	HTTP2.server(stream, settings)
end