From 5e88be0b2c3102237595bb3a7cb1d1cb07ea0552 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 21 Feb 2014 21:29:23 +0900 Subject: [PATCH] Update doc --- lib/includes/nghttp2/nghttp2.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index fa2df2ed..2a994fd2 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -1978,14 +1978,14 @@ int nghttp2_submit_response(nghttp2_session *session, * following values: * * * :enum:`NGHTTP2_FLAG_END_STREAM` - * * :enum:`NGHTTP2_FLAG_END_HEADERS` * * :enum:`NGHTTP2_FLAG_PRIORITY` * * If |flags| includes :enum:`NGHTTP2_FLAG_END_STREAM`, this frame has - * END_STREAM flag set. The library does not support header - * continuation and the HEADERS frame always has - * :enum:`NGHTTP2_FLAG_END_HEADERS` flag set regardless of the |flags| - * value. + * END_STREAM flag set. + * + * The library handles the CONTINUATION frame internally and it + * correctly sets END_HEADERS to the last sequence of the PUSH_PROMISE + * or CONTINUATION frame. * * If the |stream_id| is -1, this frame is assumed as request (i.e., * request HEADERS frame which opens new stream). In this case, the @@ -2122,10 +2122,11 @@ int nghttp2_submit_settings(nghttp2_session *session, uint8_t flags, /** * @function * - * Submits PUSH_PROMISE frame. The |flags| is currently ignored and - * the resulting PUSH_PROMISE frame always has - * :enum:`NGHTTP2_FLAG_END_HEADERS` flag set due to the lack of - * header continuation support in the library. + * Submits PUSH_PROMISE frame. + * + * The |flags| is currently ignored. The library handles the + * CONTINUATION frame internally and it correctly sets END_HEADERS to + * the last sequence of the PUSH_PROMISE or CONTINUATION frame. * * The |stream_id| must be client initiated stream ID. *