class

HTTP2::Data

Inherits IO < Reference < Object

Wraps a circular buffer to buffer incoming DATA. The buffer capacity is the initial window size. The stream window size decreases whenever reading and a WINDOW_UPDATE frame will be sent whenever the window size falls below half the buffer size (incremented by half the buffer size).

Instance methods

close

Closes this IO.

IO defines this is a no-op method, but including types may override.

Source
close_read
Source
read(slice : Bytes) : Int32

Reads previously buffered DATA.

If window size falls below half buffer capacity, sends a WINDOW_UPDATE frame to increment the window size by half the buffer size, which fits into the buffer's remaining space.

Source
size

Returns the collected size in bytes of streamed DATA frames.

Source