class

HTTP2::Frame

Inherits HTTP2::Emittable / Reference / Object

Constants

MAX_STREAM_ID = 2147483647_u32

Constructors

new(type : Type, stream_id : UInt32, flags : Flags, payload : Slice(UInt8), headers : Array(Array(String)))

For PushPromise frames

Source
new(type : Type, stream_id : UInt32, flags : Flags, payload : Slice(UInt8))
Source
new(type : Type, stream_id : UInt32, flags : Flags, headers : Array(Array(String)))

For Headers frames

Source
new(io : IO, max_frame_size : UInt32)
Source

Instance methods

flags
Source
headers
Source
inspect

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.

Source
payload
Source
stream_id
Source
type
Source

Nested types