Forest::Frame::Headers
Inherits Forest::Frame / Reference / Object
Constructors
from_io(io : IO, continuation : Bool, hpack_decoder : Hpack::Decoder | Nil = nil, maximum_frame_size : Int32 = SETTINGS_MAX_FRAME_SIZE, maximum_header_continuation_size : Int32 = MAX_HEADER_CONTINUATION_SIZE) : Headers
Sourcefrom_io(io : IO, length : Int32, continuation : Bool, hpack_decoder : Hpack::Decoder | Nil = nil, maximum_frame_size : Int32 = SETTINGS_MAX_FRAME_SIZE, maximum_header_continuation_size : Int32 = MAX_HEADER_CONTINUATION_SIZE) : Headers
Sourcenew(streamIdentifier : Int32, httpHeaders : HTTP::Headers | Nil, exclusive : Bool | Nil, streamDependency : Int32 | Nil, weight : UInt8 | Nil)
SourceClass methods
decode(hpack_decoder : Hpack::Decoder, payload : Bytes)
Sourceencode(hpack_encoder : Hpack::Encoder, headers : HTTP::Headers | Nil = self.httpHeaders)
Sourcetype
Sourcewrite_flag(io : IO, end_stream : Bool | Nil, end_headers : Bool | Nil, padded : Bool | Nil, priority : Bool | Nil)
SourceInstance methods
endHeaders
SourceendHeaders=(endHeaders : Bool | Nil)
SourceendStream
SourceendStream=(endStream : Bool | Nil)
Sourceexclusive
Sourceexclusive=(exclusive : Bool | Nil)
SourcehttpHeaders
SourcehttpHeaders=(httpHeaders : HTTP::Headers)
Sourcepadded
Sourcepadded=(padded : Bool | Nil)
SourcepaddingData
SourcepaddingData=(paddingData : Bytes | Nil)
SourcepaddingLength
SourcepaddingLength=(paddingLength : UInt8 | Nil)
Sourcepriority
Sourcepriority=(priority : Bool | Nil)
SourcestreamDependency
SourcestreamDependency=(streamDependency : Int32 | Nil)
SourcestreamIdentifier
SourcestreamIdentifier=(streamIdentifier : Int32)
Sourceto_io(io : IO, payload : Bytes, padding_data : Bytes | Nil = self.paddingData)
Sourceto_io(io : IO, hpack_encoder : Hpack::Encoder | Nil = nil, padding_data : Bytes | Nil = self.paddingData, maximum_frame_size : Int32 = SETTINGS_MAX_FRAME_SIZE)
Sourceweight
Sourceweight=(weight : UInt8 | Nil)
Source