diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-02-05 15:27:31 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-02-05 15:27:31 -0800 |
| commit | 3b33f6878ee628da22fd4451f248c036aae231ed (patch) | |
| tree | 5864cdbddb3315ef7c034f1ea7ad5f87b8f8b5c7 /docs/nng_http_conn_write_res.adoc | |
| parent | 68f3fd06531455aec4b2332bed1592795e69c3fa (diff) | |
| download | nng-3b33f6878ee628da22fd4451f248c036aae231ed.tar.gz nng-3b33f6878ee628da22fd4451f248c036aae231ed.tar.bz2 nng-3b33f6878ee628da22fd4451f248c036aae231ed.zip | |
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.
Diffstat (limited to 'docs/nng_http_conn_write_res.adoc')
| -rw-r--r-- | docs/nng_http_conn_write_res.adoc | 9 |
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. |
