Function libnghttp2_sys::nghttp2_submit_rst_stream [−][src]
pub unsafe extern "C" fn nghttp2_submit_rst_stream(
session: *mut nghttp2_session,
flags: u8,
stream_id: i32,
error_code: u32
) -> c_int
@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 :enum:nghttp2_error_code
.
The |flags| is currently ignored and should be
:enum:NGHTTP2_FLAG_NONE
.
This function returns 0 if it succeeds, or one of the following negative error codes:
:enum:NGHTTP2_ERR_NOMEM
Out of memory.
:enum:NGHTTP2_ERR_INVALID_ARGUMENT
The |stream_id| is 0.