<dd><p>The number of name/value pairs in <em>nva</em>.</p>
</dd></dl>
<dlclass="member">
<dtid="nghttp2_headers.cat">
<aclass="reference internal"href="#nghttp2_headers_category"title="nghttp2_headers_category">nghttp2_headers_category</a><ttclass="descname">cat</tt><aclass="headerlink"href="#nghttp2_headers.cat"title="Permalink to this definition">¶</a></dt>
<dd><p>The category of this HEADERS frame.</p>
</dd></dl>
<dlclass="member">
<dtid="nghttp2_headers.pri">
int32_t <ttclass="descname">pri</tt><aclass="headerlink"href="#nghttp2_headers.pri"title="Permalink to this definition">¶</a></dt>
...
...
@@ -1913,13 +1919,29 @@ drop the connection.</p>
<dtid="nghttp2_session_get_stream_user_data">
void* <ttclass="descname">nghttp2_session_get_stream_user_data</tt><big>(</big><aclass="reference internal"href="#nghttp2_session"title="nghttp2_session">nghttp2_session</a><em> *session</em>, int32_t<em> stream_id</em><big>)</big><aclass="headerlink"href="#nghttp2_session_get_stream_user_data"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns stream_user_data for the stream <em>stream_id</em>. The
stream_user_data is provided by <aclass="reference internal"href="#nghttp2_submit_request"title="nghttp2_submit_request"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_request()</span></tt></a> or
<aclass="reference internal"href="#nghttp2_submit_headers"title="nghttp2_submit_headers"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_headers()</span></tt></a>. If the stream is initiated by the
remote endpoint, stream_user_data is always <ttclass="docutils literal"><spanclass="pre">NULL</span></tt>. If the stream
is initiated by the local endpoint and <ttclass="docutils literal"><spanclass="pre">NULL</span></tt> is given in
<aclass="reference internal"href="#nghttp2_submit_request"title="nghttp2_submit_request"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_request()</span></tt></a> or <aclass="reference internal"href="#nghttp2_submit_headers"title="nghttp2_submit_headers"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_headers()</span></tt></a>, then
this function returns <ttclass="docutils literal"><spanclass="pre">NULL</span></tt>. If the stream does not exist, this
function returns <ttclass="docutils literal"><spanclass="pre">NULL</span></tt>.</p>
stream_user_data is provided by <aclass="reference internal"href="#nghttp2_submit_request"title="nghttp2_submit_request"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_request()</span></tt></a>,
<aclass="reference internal"href="#nghttp2_submit_headers"title="nghttp2_submit_headers"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_headers()</span></tt></a> or
<aclass="reference internal"href="#nghttp2_session_set_stream_user_data"title="nghttp2_session_set_stream_user_data"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_session_set_stream_user_data()</span></tt></a>. Unless it is set using
<aclass="reference internal"href="#nghttp2_session_set_stream_user_data"title="nghttp2_session_set_stream_user_data"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_session_set_stream_user_data()</span></tt></a>, if the stream is
initiated by the remote endpoint, stream_user_data is always
<ttclass="docutils literal"><spanclass="pre">NULL</span></tt>. If the stream does not exist, this function returns
int <ttclass="descname">nghttp2_session_set_stream_user_data</tt><big>(</big><aclass="reference internal"href="#nghttp2_session"title="nghttp2_session">nghttp2_session</a><em> *session</em>, int32_t<em> stream_id</em>, void<em> *stream_user_data</em><big>)</big><aclass="headerlink"href="#nghttp2_session_set_stream_user_data"title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the <em>stream_user_data</em> to the stream denoted by the
<em>stream_id</em>. If a stream user data is already set to the stream, it
is replaced with the <em>stream_user_data</em>. It is valid to specify
<ttclass="docutils literal"><spanclass="pre">NULL</span></tt> in the <em>stream_user_data</em>, which nullifies the associated
data pointer.</p>
<p>This function returns 0 if it succeeds, or one of following
negative error codes:</p>
<dlclass="docutils">
<dt><aclass="reference internal"href="#NGHTTP2_ERR_INVALID_ARGUMENT"title="NGHTTP2_ERR_INVALID_ARGUMENT"><ttclass="xref c c-macro docutils literal"><spanclass="pre">NGHTTP2_ERR_INVALID_ARGUMENT</span></tt></a></dt>
The <ttclass="docutils literal"><spanclass="pre">name</span></tt> is the header field name and the <ttclass="docutils literal"><spanclass="pre">value</span></tt> is the
header field value. They may be displayed as <ttclass="docutils literal"><spanclass="pre">**DEALLOCATED**</span></tt>,
which means that the memory for that string is freed and not
available. This will happen when the value has 0 length or
specifying smaller value in <ttclass="docutils literal"><spanclass="pre">-S</span></tt> than <ttclass="docutils literal"><spanclass="pre">-s</span></tt>.</dd>
available. This will happen when the specifying smaller value in
<ttclass="docutils literal"><spanclass="pre">-S</span></tt> than <ttclass="docutils literal"><spanclass="pre">-s</span></tt>.</dd>
<dt>size</dt>
<dd>The sum of the spaces entries occupied, this includes the