struct

HTTP2::Frame::Priority

Inherits HTTP2::Frame < Struct < Value < Object

Constants

AllowedFlags = 0_u8
TypeCode = 2_u8

Constructors

new(flags : UInt8, stream_id : UInt32, payload : Bytes)

Deferred to finished (rather than checked here directly): the inherited hook fires as soon as < Frame is parsed, before this subtype's own body (including its TypeCode constant) exists, so @type.has_constant? would always see "not yet defined" here. A nested finished hook runs after the whole subtype body is parsed, when the check is actually meaningful. Frame::Unknown has no TypeCode/AllowedFlags (its type code is a runtime value read off the wire, not a per-type constant), so it skips this block entirely and provides its own initialize.

new(flags : Flags, stream_id : UInt32, payload : Bytes)

Deferred to finished (rather than checked here directly): the inherited hook fires as soon as < Frame is parsed, before this subtype's own body (including its TypeCode constant) exists, so @type.has_constant? would always see "not yet defined" here. A nested finished hook runs after the whole subtype body is parsed, when the check is actually meaningful. Frame::Unknown has no TypeCode/AllowedFlags (its type code is a runtime value read off the wire, not a per-type constant), so it skips this block entirely and provides its own initialize.

new(flags : Flags, stream_id : UInt32, payload : String)

Deferred to finished (rather than checked here directly): the inherited hook fires as soon as < Frame is parsed, before this subtype's own body (including its TypeCode constant) exists, so @type.has_constant? would always see "not yet defined" here. A nested finished hook runs after the whole subtype body is parsed, when the check is actually meaningful. Frame::Unknown has no TypeCode/AllowedFlags (its type code is a runtime value read off the wire, not a per-type constant), so it skips this block entirely and provides its own initialize.

new(flags : UInt8, stream_id : UInt32, payload : String)

Deferred to finished (rather than checked here directly): the inherited hook fires as soon as < Frame is parsed, before this subtype's own body (including its TypeCode constant) exists, so @type.has_constant? would always see "not yet defined" here. A nested finished hook runs after the whole subtype body is parsed, when the check is actually meaningful. Frame::Unknown has no TypeCode/AllowedFlags (its type code is a runtime value read off the wire, not a per-type constant), so it skips this block entirely and provides its own initialize.

Instance methods

exclusive?
Source
flags

Deferred to finished (rather than checked here directly): the inherited hook fires as soon as < Frame is parsed, before this subtype's own body (including its TypeCode constant) exists, so @type.has_constant? would always see "not yet defined" here. A nested finished hook runs after the whole subtype body is parsed, when the check is actually meaningful. Frame::Unknown has no TypeCode/AllowedFlags (its type code is a runtime value read off the wire, not a per-type constant), so it skips this block entirely and provides its own initialize.

stream_dependency
Source
weight

The encoded value is one less than the effective HTTP/2 weight.

Source