class Protocol::HTTP2::PriorityFrame
The PRIORITY frame specifies the sender-advised priority of a stream. It can be sent in any stream state, including idle or closed streams.
-
————————————————————-+ |E| Stream
Dependency
(31) | -
————------------------------------------------------
| Weight (8) | -
————-+
Constants
- TYPE
Public Instance Methods
apply(connection)
click to toggle source
# File lib/protocol/http2/priority_frame.rb, line 88 def apply(connection) connection.receive_priority(self) end
pack(priority)
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#pack
# File lib/protocol/http2/priority_frame.rb, line 80 def pack priority super priority.pack end
priority()
click to toggle source
# File lib/protocol/http2/priority_frame.rb, line 76 def priority Priority.unpack(@payload) end
read_payload(stream)
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#read_payload
# File lib/protocol/http2/priority_frame.rb, line 92 def read_payload(stream) super if @length != 5 raise FrameSizeError, "Invalid frame length" end end
unpack()
click to toggle source
Calls superclass method
Protocol::HTTP2::Frame#unpack
# File lib/protocol/http2/priority_frame.rb, line 84 def unpack Priority.unpack(super) end