Creates new stream in Session with stream ID |stream_id|,
priority |pri_spec| and flags |flags|. The |flags| is bitwise OR
of StreamFlags. Since this function is called when initial
HEADERS is sent or received, these flags are taken from it. The
state of stream is set to |initial_state|. The |stream_user_data|
is a pointer to the arbitrary user supplied data to be associated
to this stream.
If |initial_state| is StreamState.RESERVED, this function sets the
StreamFlags.PUSH flag.
This function returns a pointer to created new stream object.
Creates new stream in Session with stream ID |stream_id|, priority |pri_spec| and flags |flags|. The |flags| is bitwise OR of StreamFlags. Since this function is called when initial HEADERS is sent or received, these flags are taken from it. The state of stream is set to |initial_state|. The |stream_user_data| is a pointer to the arbitrary user supplied data to be associated to this stream.
If |initial_state| is StreamState.RESERVED, this function sets the StreamFlags.PUSH flag.
This function returns a pointer to created new stream object.