From ab9b0538bc7064ed52b54a7de6e881d6c80e76e8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 8 Aug 2014 23:38:20 +0900 Subject: [PATCH] Add doc how to issue non-final response headers --- lib/includes/nghttp2/nghttp2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 3e5be880..abf76527 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -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: *