Session.consumeStream

@function

Like consume, but this only tells library that |size| bytes were consumed only for stream denoted by |stream_id|. Note that HTTP/2 maintains connection and stream level flow control windows independently.

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
consumeStream
(,
size_t size
)

Meta