class Protocol::HTTP2::DataFrame
---------------------------------------------------------------
| Padding (*) …---------------------------------------------------------------
| Data (*) …---------------
———————————————–+
|Pad Length? (8)|---------------
DATA frames MAY also contain padding. Padding can be added to DATA frames to obscure the size of messages.
DATA frames convey arbitrary, variable-length sequences of octets associated with a stream. One or more DATA frames are used, for instance, to carry HTTP request or response payloads.
def apply(connection)
def apply(connection) connection.receive_data(self) end
def end_stream?
def end_stream? flag_set?(END_STREAM) end
def inspect
def inspect "\#<#{self.class} stream_id=#{@stream_id} flags=#{@flags} #{@length || 0}b>" end
def pack(data, *arguments, **options)
def pack(data, *arguments, **options) if data super else @length = 0 set_flags(END_STREAM) end end