struct

HTTP2::Frame::GoAway

Inherits HTTP2::Frame < Struct < Value < Object

Constants

AllowedFlags = 0_u8
TypeCode = 7_u8

Constructors

new(last_stream_id : UInt32 = 0_u32, error_code : UInt32 = ErrorCode::NO_ERROR.to_u32, debug_data : Bytes = Bytes.empty)
Source
new(last_stream_id : UInt32, error_code : ErrorCode, debug_data : Bytes = Bytes.empty)
Source
new(last_stream_id : UInt32, error_code : UInt32, debug_data : String)
Source
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

data
Source
debug_data
Source
error_code
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.

last_stream_id
Source