struct HTTP2::Frame::PushPromise

Included Modules

Defined in:

frame/push_promise.cr

Constant Summary

TypeCode = 5_u8

Constructors

Instance Method Summary

Instance methods inherited from struct HTTP2::Frame

data data, error? error?, initialize initialize, payload : Bytes payload, stream stream, stream_id : UInt32 stream_id, to_s(io) to_s

Constructor methods inherited from struct HTTP2::Frame

new new

Class methods inherited from struct HTTP2::Frame

from_io(io : IO) from_io, from_type_code(type_code) from_type_code, parse_from_io(io : IO) parse_from_io, type(type_code) type

Constructor Detail

def self.new(flags : UInt8, stream_id : UInt32, payload : Bytes = Bytes.empty) #

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

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

[View source]
def self.new(flags : UInt8, stream_id : UInt32, payload : String) #

[View source]
def self.new(flags : UInt8, stream_id : UInt32, promised_stream_id : UInt32, headers : HTTP::Headers = HTTP::Headers.new, encoder : HPack::Encoder = HPack::Encoder.new, pad_length : UInt8 = (rand(256)).to_u8) #

[View source]
def self.new(flags : Flags, stream_id : UInt32, promised_stream_id : UInt32, headers : HTTP::Headers = HTTP::Headers.new, encoder : HPack::Encoder = HPack::Encoder.new, pad_length : UInt8 = (rand(256)).to_u8) #

[View source]

Instance Method Detail

def data #

[View source]
def data_offset #

[View source]
def decode #

[View source]
def decode_using(decoder : HPack::Decoder) #

[View source]
def end_headers? #

[View source]
def error? #
Description copied from struct HTTP2::Frame

This method may be overridden to do error checking on the frame, to determine if it might be invalid in some way.


[View source]
def flags #

[View source]
def header_block_fragment #

[View source]
def headers : HTTP::Headers #

def pad_length : UInt8 #

If the frame has padding enabled, this byte will contain the length of the padding


[View source]
def padded? #

[View source]
def padding #

[View source]
def promised_stream_id #

[View source]
def r? #

[View source]
def setup #
Description copied from struct HTTP2::Frame

This can be overridden in subclasses to do custom setup tasks without requiring overriding of the default initialization methods.


[View source]
def type_code #

[View source]