lib/async/http/protocol/http2.rb in async-http-0.45.9 vs lib/async/http/protocol/http2.rb in async-http-0.46.0

- old
+ new

@@ -61,10 +61,14 @@ server.start_connection return server end + def self.names + ["h2"] + end + module WithPush CLIENT_SETTINGS = HTTP2::CLIENT_SETTINGS.merge( ::Protocol::HTTP2::Settings::ENABLE_PUSH => 1, ) @@ -72,9 +76,13 @@ HTTP2.client(stream, settings) end def self.server(stream, settings = SERVER_SETTINGS) HTTP2.server(stream, settings) + end + + def self.names + HTTP2.names end end end end end