Class: Protocol::HTTP2::WindowUpdateFrame
- Defined in:
- lib/protocol/http2/window_update_frame.rb
Overview
The WINDOW_UPDATE frame is used to implement flow control.
-————————————————————-+ |R| Window Size Increment (31) | -————————————————————-+
Constant Summary collapse
- TYPE =
0x8- FORMAT =
"N"
Constants inherited from Frame
Frame::HEADER_FORMAT, Frame::LENGTH_HISHIFT, Frame::LENGTH_LOMASK, Frame::STREAM_ID_MASK, Frame::VALID_LENGTH, Frame::VALID_STREAM_ID
Instance Attribute Summary
Attributes inherited from Frame
#flags, #length, #payload, #stream_id, #type
Instance Method Summary collapse
Methods inherited from Frame
#<=>, #clear_flags, #connection?, #flag_set?, #header, #initialize, parse_header, #read, #read_header, #read_payload, #set_flags, #to_ary, #valid_type?, #write, #write_header, #write_payload
Constructor Details
This class inherits a constructor from Protocol::HTTP2::Frame
Instance Method Details
#apply(connection) ⇒ Object
101 102 103 |
# File 'lib/protocol/http2/window_update_frame.rb', line 101 def apply(connection) connection.receive_window_update(self) end |
#pack(window_size_increment) ⇒ Object
93 94 95 |
# File 'lib/protocol/http2/window_update_frame.rb', line 93 def pack(window_size_increment) super [window_size_increment].pack(FORMAT) end |
#unpack ⇒ Object
97 98 99 |
# File 'lib/protocol/http2/window_update_frame.rb', line 97 def unpack super.unpack(FORMAT).first end |