2 nghttp2_session_set_stream_user_data
3 ====================================
8 *#include <nghttp2/nghttp2.h>*
10 .. function:: int nghttp2_session_set_stream_user_data(nghttp2_session *session, int32_t stream_id, void *stream_user_data)
13 Sets the *stream_user_data* to the stream denoted by the
14 *stream_id*. If a stream user data is already set to the stream,
15 it is replaced with the *stream_user_data*. It is valid to specify
16 ``NULL`` in the *stream_user_data*, which nullifies the associated
19 It is valid to set the *stream_user_data* to the stream reserved by
22 This function returns 0 if it succeeds, or one of following
25 :macro:`nghttp2_error.NGHTTP2_ERR_INVALID_ARGUMENT`
26 The stream does not exist