class Protocol::HTTP2::WindowUpdateFrame
The WINDOW_UPDATE frame is used to implement flow control.
-
————————————————————-+ |R| Window
Size Increment (31) | -
————————————————————-+
Constants
- FORMAT
- TYPE
Public Instance Methods
apply(connection)
click to toggle source
# File lib/protocol/http2/window_update_frame.rb, line 135 def apply(connection) connection.receive_window_update(self) end
pack(window_size_increment)
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#pack
# File lib/protocol/http2/window_update_frame.rb, line 119 def pack(window_size_increment) super [window_size_increment].pack(FORMAT) end
read_payload(stream)
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#read_payload
# File lib/protocol/http2/window_update_frame.rb, line 127 def read_payload(stream) super if @length != 4 raise FrameSizeError, "Invalid frame length: #{@length} != 4!" end end
unpack()
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#unpack
# File lib/protocol/http2/window_update_frame.rb, line 123 def unpack super.unpack1(FORMAT) end