class

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
Source
from_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
Source
new(streamIdentifier : Int32, httpHeaders : HTTP::Headers | Nil, exclusive : Bool | Nil, streamDependency : Int32 | Nil, weight : UInt8 | Nil)
Source

Class methods

decode(hpack_decoder : Hpack::Decoder, payload : Bytes)
Source
encode(hpack_encoder : Hpack::Encoder, headers : HTTP::Headers | Nil = self.httpHeaders)
Source
type
Source
write_flag(io : IO, end_stream : Bool | Nil, end_headers : Bool | Nil, padded : Bool | Nil, priority : Bool | Nil)
Source

Instance methods

endHeaders
Source
endHeaders=(endHeaders : Bool | Nil)
Source
endStream
Source
endStream=(endStream : Bool | Nil)
Source
exclusive
Source
exclusive=(exclusive : Bool | Nil)
Source
httpHeaders
Source
httpHeaders=(httpHeaders : HTTP::Headers)
Source
padded
Source
padded=(padded : Bool | Nil)
Source
paddingData
Source
paddingData=(paddingData : Bytes | Nil)
Source
paddingLength
Source
paddingLength=(paddingLength : UInt8 | Nil)
Source
priority
Source
priority=(priority : Bool | Nil)
Source
streamDependency
Source
streamDependency=(streamDependency : Int32 | Nil)
Source
streamIdentifier
Source
streamIdentifier=(streamIdentifier : Int32)
Source
to_http_request(body : IO | Nil = nil) : HTTP::Request
Source
to_io(io : IO, payload : Bytes, padding_data : Bytes | Nil = self.paddingData)
Source
to_io(io : IO, hpack_encoder : Hpack::Encoder | Nil = nil, padding_data : Bytes | Nil = self.paddingData, maximum_frame_size : Int32 = SETTINGS_MAX_FRAME_SIZE)
Source
weight
Source
weight=(weight : UInt8 | Nil)
Source