Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2016-07-13 22:01:31 +09:00
parent ed8d5f04bb
commit 0cb0bdabec
1 changed files with 8 additions and 8 deletions

View File

@ -3608,8 +3608,8 @@ nghttp2_submit_response(nghttp2_session *session, int32_t stream_id,
* *
* The |nva| is an array of name/value pair :type:`nghttp2_nv` with * The |nva| is an array of name/value pair :type:`nghttp2_nv` with
* |nvlen| elements. The application is responsible not to include * |nvlen| elements. The application is responsible not to include
* required pseudo-header fields (header field whose name starts with * pseudo-header fields (header field whose name starts with ":") in
* ":") in |nva|. * |nva|.
* *
* This function creates copies of all name/value pairs in |nva|. It * This function creates copies of all name/value pairs in |nva|. It
* also lower-cases all names in |nva|. The order of elements in * also lower-cases all names in |nva|. The order of elements in
@ -3624,20 +3624,20 @@ nghttp2_submit_response(nghttp2_session *session, int32_t stream_id,
* :type:`nghttp2_on_frame_not_send_callback` is called. * :type:`nghttp2_on_frame_not_send_callback` is called.
* *
* For server, trailer fields must follow response HEADERS or response * For server, trailer fields must follow response HEADERS or response
* DATA with END_STREAM flag set. The library does not enforce this * DATA without END_STREAM flat set. The library does not enforce
* requirement, and applications should do this for themselves. If * this requirement, and applications should do this for themselves.
* `nghttp2_submit_trailer()` is called before any response HEADERS * If `nghttp2_submit_trailer()` is called before any response HEADERS
* submission (usually by `nghttp2_submit_response()`), the content of * submission (usually by `nghttp2_submit_response()`), the content of
* |nva| will be sent as response headers, which will result in error. * |nva| will be sent as response headers, which will result in error.
* *
* This function has the same effect with `nghttp2_submit_headers()`, * This function has the same effect with `nghttp2_submit_headers()`,
* with flags = :enum:`NGHTTP2_FLAG_END_HEADERS` and both pri_spec and * with flags = :enum:`NGHTTP2_FLAG_END_STREAM` and both pri_spec and
* stream_user_data to NULL. * stream_user_data to NULL.
* *
* To submit trailer fields after `nghttp2_submit_response()` is * To submit trailer fields after `nghttp2_submit_response()` is
* called, the application has to specify * called, the application has to specify
* :type:`nghttp2_data_provider` to `nghttp2_submit_response()`. In * :type:`nghttp2_data_provider` to `nghttp2_submit_response()`.
* side :type:`nghttp2_data_source_read_callback`, when setting * Inside of :type:`nghttp2_data_source_read_callback`, when setting
* :enum:`NGHTTP2_DATA_FLAG_EOF`, also set * :enum:`NGHTTP2_DATA_FLAG_EOF`, also set
* :enum:`NGHTTP2_DATA_FLAG_NO_END_STREAM`. After that, the * :enum:`NGHTTP2_DATA_FLAG_NO_END_STREAM`. After that, the
* application can send trailer fields using * application can send trailer fields using