struct HTTP2::Frame::Data
- HTTP2::Frame::Data
- HTTP2::Frame
- Struct
- Value
- Object
Included Modules
Defined in:
frame/data.crConstant Summary
-
TypeCode =
0_u8
Constructors
- .new(flags : UInt8, stream_id : UInt32, payload : Bytes = Bytes.empty)
- .new(flags : Flags, stream_id : UInt32, payload : Bytes = Bytes.empty)
- .new(flags : Flags, stream_id : UInt32, payload : String)
- .new(flags : UInt8, stream_id : UInt32, payload : String)
- .new(flags : UInt8, stream_id : UInt32, payload : IO)
Instance Method Summary
- #data
- #data_offset
-
#error?
This method may be overridden to do error checking on the frame, to determine if it might be invalid in some way.
- #flags
-
#pad_length : UInt8
If the frame has padding enabled, this byte will contain the length of the padding
- #padded?
- #padding
- #type_code
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
Instance Method Detail
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.
def pad_length : UInt8
#
If the frame has padding enabled, this byte will contain the length of the padding