From 95b0b6cb793f9681871fa71e87bf664bb042e943 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 9 Jan 2014 21:42:44 +0900 Subject: [PATCH] Update doc --- lib/includes/nghttp2/nghttp2.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index afb3e3a4..b2d5ff8f 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -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: *