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
new(type : Type, stream_id : UInt32, flags : Flags, payload : Slice(UInt8))
Sourcenew(type : Type, stream_id : UInt32, flags : Flags, headers : Array(Array(String)))
For Headers frames
new(io : IO, max_frame_size : UInt32)
SourceInstance methods
flags
Sourceheaders
Sourceinspect
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.
payload
Sourcestream_id
Sourcetype
Source