aboutsummaryrefslogtreecommitdiff
path: root/docs/nng_http_conn_write_res.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/nng_http_conn_write_res.adoc')
-rw-r--r--docs/nng_http_conn_write_res.adoc9
1 files changed, 9 insertions, 0 deletions
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.