struct

HTTP2::Frame::Ping

Inherits HTTP2::Frame < Struct < Value < Object

Constants

AllowedFlags = 1_u8
TypeCode = 6_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.

new(flags : UInt8, stream_id : UInt32)
Source
new(flags : Flags, stream_id : UInt32)
Source

Instance methods

ack?
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.

Nested types