HT2::Frame
Inherits Reference < Object
Base frame structure for HTTP/2
Constants
HEADER_SIZE = 9
Constructors
new(stream_id : UInt32, flags : FrameFlags = FrameFlags::None)
SourceClass methods
parse_header(bytes : Bytes) : Tuple(UInt32, FrameType, FrameFlags, UInt32)
Parse frame header from bytes
Instance methods
flags
Sourceframe_type
Sourcelength
Sourcepayload
Sourcestream_id
Sourcetype
Sourcewrite_to(io : IO, header_buffer : Bytes) : Nil
Write frame using provided header buffer (zero-copy)