abstract struct HTTP2::Frame

Direct Known Subclasses

Defined in:

http2.cr

Constant Summary

TYPES = {Data, Headers, Priority, ResetStream, Settings, PushPromise, Ping, GoAway, WindowUpdate, Continuation}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_io(io : IO) : Frame #

[View source]
def self.new(flags : Flags, stream_id : UInt32, payload : Bytes = Bytes.empty) #

[View source]

Class Method Detail

def self.type(type : UInt8) : Frame.class #

[View source]

Instance Method Detail

def flags : HTTP2::Frame::Flags #

[View source]
def payload : Slice(UInt8) #

[View source]
def stream_id : UInt32 #

[View source]
def to_s(io) #

[View source]
abstract def type_byte : UInt8 #

[View source]