lib/http/protocol/http2/server.rb in http-protocol-0.14.0 vs lib/http/protocol/http2/server.rb in http-protocol-0.15.0
- old
+ new
@@ -39,9 +39,17 @@
end
else
raise ProtocolError, "Cannot send connection preface in state #{@state}"
end
end
+
+ def enable_push?
+ @remote_settings.enable_push?
+ end
+
+ def receive_push_promise
+ raise ProtocolError, "Server cannot receive push promises."
+ end
end
end
end
end