class ContinuationFrame
The CONTINUATION frame is used to continue a sequence of header block fragments. Any number of CONTINUATION frames can be sent, as long as the preceding frame is on the same stream and is a HEADERS, PUSH_PROMISE, or CONTINUATION frame without the END_HEADERS flag set.
+---------------------------------------------------------------+ | Header Block Fragment (*) ... +---------------------------------------------------------------+
Definitions
def read(stream, maximum_frame_size, limit = 8)
Read the frame and any continuation frames from the stream.
Signature
-
parameter
stream
IO
The stream to read from.
-
parameter
maximum_frame_size
Integer
Maximum allowed frame size.
-
parameter
limit
Integer
The maximum number of continuation frames to read.
Implementation
def read(stream, maximum_frame_size, limit = 8)
super
end
def apply(connection)
This is only invoked if the continuation is received out of the normal flow.
Implementation
def apply(connection)
connection.receive_continuation(self)
end
def inspect
Get a string representation of the continuation frame.
Signature
-
returns
String
Human-readable frame information.
Implementation
def inspect
"\#<#{self.class} stream_id=#{@stream_id} flags=#{@flags} length=#{@length || 0}b>"
end