submitRstStream

@function

Submits RST_STREAM frame to cancel/reject the stream |stream_id| with the error code |error_code|.

The pre-defined error code is one of FrameError.

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

ErrorCode.NOMEM Out of memory. ErrorCode.INVALID_ARGUMENT The |stream_id| is 0.

Meta