@@ -2541,6 +2541,11 @@ HEADERS have END_STREAM set. The <em>stream_user_data</em> is data
associated to the stream opened by this request and can be an
arbitrary pointer, which can be retrieved later by
<aclass="reference internal"href="#c.nghttp2_session_get_stream_user_data"title="nghttp2_session_get_stream_user_data"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_session_get_stream_user_data()</span></tt></a>.</p>
<p>This function returns assigned stream ID if it succeeds. But that
stream is not opened yet. The application must not submit frame to
that stream ID before
<aclass="reference internal"href="#c.nghttp2_session_callbacks.before_frame_send_callback"title="nghttp2_session_callbacks.before_frame_send_callback"><ttclass="xref c c-member docutils literal"><spanclass="pre">nghttp2_session_callbacks.before_frame_send_callback</span></tt></a> is
called for this frame.</p>
<p>This function returns assigned stream ID if it succeeds, or one of
the following negative error codes:</p>
<dlclass="docutils">
...
...
@@ -2627,6 +2632,11 @@ stream state from idle or reserved to open.</p>
<p>This function is low-level in a sense that the application code can
specify flags directly. For usual HTTP request,
<aclass="reference internal"href="#c.nghttp2_submit_request"title="nghttp2_submit_request"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_submit_request()</span></tt></a> is useful.</p>
<p>This function returns assigned stream ID if it succeeds and
<em>stream_id</em> is -1. But that stream is not opened yet. The
application must not submit frame to that stream ID before
<aclass="reference internal"href="#c.nghttp2_session_callbacks.before_frame_send_callback"title="nghttp2_session_callbacks.before_frame_send_callback"><ttclass="xref c c-member docutils literal"><spanclass="pre">nghttp2_session_callbacks.before_frame_send_callback</span></tt></a> is
called for this frame.</p>
<p>This function returns newly assigned stream ID if it succeeds and
<em>stream_id</em> is -1. Otherwise, this function returns 0 if it
succeeds, or one of the following negative error codes:</p>
...
...
@@ -2752,6 +2762,11 @@ make it in reserved state. It is available using
<aclass="reference internal"href="#c.nghttp2_session_get_stream_user_data"title="nghttp2_session_get_stream_user_data"><ttclass="xref c c-func docutils literal"><spanclass="pre">nghttp2_session_get_stream_user_data()</span></tt></a>. The application can
access it in <aclass="reference internal"href="#c.nghttp2_before_frame_send_callback"title="nghttp2_before_frame_send_callback"><ttclass="xref c c-type docutils literal"><spanclass="pre">nghttp2_before_frame_send_callback</span></tt></a> and
<aclass="reference internal"href="#c.nghttp2_on_frame_send_callback"title="nghttp2_on_frame_send_callback"><ttclass="xref c c-type docutils literal"><spanclass="pre">nghttp2_on_frame_send_callback</span></tt></a> of this frame.</p>
<p>This function returns assigned promised stream ID if it succeeds.
But that stream is not opened yet. The application must not submit
frame to that stream ID before
<aclass="reference internal"href="#c.nghttp2_session_callbacks.before_frame_send_callback"title="nghttp2_session_callbacks.before_frame_send_callback"><ttclass="xref c c-member docutils literal"><spanclass="pre">nghttp2_session_callbacks.before_frame_send_callback</span></tt></a> is
called for this frame.</p>
<p>The client side is not allowed to use this function.</p>
<p>This function returns assigned promised stream ID if it succeeds,
<p><ttclass="docutils literal"><spanclass="pre">h2c-12</span></tt> and <ttclass="docutils literal"><spanclass="pre">http/1.1</span></tt>. We configured this server to send
...
...
@@ -268,10 +269,13 @@ $ ./configure
$ make
</pre></div>
</div>
<p>Mac OS X users may need <ttclass="docutils literal"><spanclass="pre">--disable-threads</span></tt> configure option to
disable multi threading in nghttpd, nghttpx and h2load to prevent them
from crashing. Patch is welcome to make multi threading work on Mac
OS X platform.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">Mac OS X users may need <ttclass="docutils literal"><spanclass="pre">--disable-threads</span></tt> configure option to
disable multi threading in nghttpd, nghttpx and h2load to prevent
them from crashing. Patch is welcome to make multi threading work
on Mac OS X platform.</p>
</div>
</div>
<divclass="section"id="building-documentation">
<h2>Building documentation<aclass="headerlink"href="#building-documentation"title="Permalink to this headline">¶</a></h2>