From 3b33f6878ee628da22fd4451f248c036aae231ed Mon Sep 17 00:00:00 2001
From: Garrett D'Amore <garrett@damore.org>
Date: Mon, 5 Feb 2018 15:27:31 -0800
Subject: Inital swag at HTTP handler docs.

We will need to document nng_aio_set_output, and both document
and create an nng_aio_finish() function.
---
 docs/nng_http_conn_write_res.adoc | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'docs/nng_http_conn_write_res.adoc')

diff --git a/docs/nng_http_conn_write_res.adoc b/docs/nng_http_conn_write_res.adoc
index 8f5a407d..31e438b4 100644
--- a/docs/nng_http_conn_write_res.adoc
+++ b/docs/nng_http_conn_write_res.adoc
@@ -37,6 +37,15 @@ the operation is signaled via the _aio_, and the final result may be
 obtained via <<nng_aio_result#,nng_aio_result>>. That result will
 either be zero or an error code.
 
+=== Persistent Connections
+
+By default, for `HTTP/1.1` connections, the connection is kept open, and
+will be reused to receive new requests.
+
+If however the _res_ contains a header of `Connection:` with a value 
+of `Close` (case-insensitive) or the response corresponds to `HTTP/1.0`,
+then the connection is immediately after sending the response.
+
 == RETURN VALUES
 
 None.
-- 
cgit v1.2.3-70-g09d2

