Add doc how to issue non-final response headers

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-08 23:38:20 +09:00
parent 24edd2972d
commit ab9b0538bc
1 changed files with 4 additions and 0 deletions

View File

@ -2277,6 +2277,10 @@ int32_t nghttp2_submit_request(nghttp2_session *session,
* the target stream denoted by the |stream_id| must be reserved using
* `nghttp2_submit_push_promise()`.
*
* To send non-final response headers (e.g., HTTP status 101), don't
* use this function because this function half-closes the outbound
* stream. Instead, use `nghttp2_submit_headers()` for this purpose.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*