Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2014-01-09 21:42:44 +09:00
parent fe1a39ed10
commit 95b0b6cb79
1 changed files with 4 additions and 1 deletions

View File

@ -1873,7 +1873,7 @@ int nghttp2_submit_request(nghttp2_session *session, int32_t pri,
* |data_prd|. If |data_prd| is ``NULL``, HEADERS will have
* END_STREAM flag set.
*
* This method can be used as normal HTTP response and server-push
* This method can be used as normal HTTP response and push
* response. When pushing a resource using this function, the
* |session| must be configured using `nghttp2_session_server_new()`
* or its variants and the target stream denoted by the |stream_id|
@ -2075,6 +2075,9 @@ int nghttp2_submit_settings(nghttp2_session *session, uint8_t flags,
* callback is called just before the frame is sent. For PUSH_PROMISE
* frame, the argument frame has the promised stream ID assigned.
*
* The client side can use this function to send PUSH_PROMISE to the
* server. But in normal HTTP usage, the server may treat it error.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*