struct

HTTP2::Connection::FieldBlock

Inherits Struct < Value < Object

One complete compressed field block and the metadata from its opening HEADERS or PUSH_PROMISE frame.

Constructors

from(frame : Frame::Headers, encoded : Bytes, continuation_count : Int32) : self
Source
from(frame : Frame::PushPromise, encoded : Bytes, continuation_count : Int32) : self
Source
new(kind : Kind, stream_id : UInt32, encoded : Bytes, end_stream : Bool = false, promised_stream_id : UInt32 | Nil = nil, priority : Priority | Nil = nil, continuation_count : Int32 = 0)
Source

Instance methods

continuation_count
Source
encoded

May alias the opening frame's payload or the assembler's CONTINUATION accumulator buffer (see FieldBlockAssembler) rather than a defensive copy — valid only until this block is decoded, i.e. within the reader fiber's current dispatch of this frame. Do not retain it past that point.

Source
end_stream?
Source
kind
Source
priority
Source
promised_stream_id
Source
stream_id
Source

Nested types