lib/protocol/http2/client.rb in protocol-http2-0.11.1 vs lib/protocol/http2/client.rb in protocol-http2-0.11.2

- old
+ new

@@ -25,9 +25,17 @@ class Client < Connection def initialize(framer) super(framer, 1) end + def local_stream_id?(id) + id.odd? + end + + def remote_stream_id?(id) + id.even? + end + def valid_remote_stream_id?(stream_id) stream_id.even? end def send_connection_preface(settings = [])