Session.consume

Tells the Session that |size| bytes for a stream denoted by |stream_id| were consumed by application and are ready to WINDOW_UPDATE. The consumed bytes are counted towards both connection and stream level WINDOW_UPDATE (see consumeConnection and consumeStream). This function is intended to be used without automatic window update (see Options.setNoAutoWindowUpdate.

This function returns 0 if it succeeds, or one of the following negative error codes:

ErrorCode.INVALID_ARGUMENT The |stream_id| is 0. ErrorCode.INVALID_STATE Automatic WINDOW_UPDATE is not disabled.

class Session
consume
(,
size_t size
)

Meta