summaryrefslogtreecommitdiff
path: root/ref/api/http.html
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2025-10-11 13:20:16 +0000
committergdamore <gdamore@users.noreply.github.com>2025-10-11 13:20:16 +0000
commitc635d5615add1db2eea17c9ae0b67e6671462cbd (patch)
tree0856c057cfca40d7513df2900e9ea3ccd28d1b4b /ref/api/http.html
parentb4c6169cfab829cf6632115c930145802321cbec (diff)
downloadnng-c635d5615add1db2eea17c9ae0b67e6671462cbd.tar.gz
nng-c635d5615add1db2eea17c9ae0b67e6671462cbd.tar.bz2
nng-c635d5615add1db2eea17c9ae0b67e6671462cbd.zip
deploy: b98e03b26bfc593326bd7c1d56fd69626f6a93cb
Diffstat (limited to 'ref/api/http.html')
-rw-r--r--ref/api/http.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/ref/api/http.html b/ref/api/http.html
index 45f469f4..11afe0c3 100644
--- a/ref/api/http.html
+++ b/ref/api/http.html
@@ -796,11 +796,11 @@ the response body may be set using either <a href="../api/http.html#storing-body
<a href="../api/http.html#collecting-request-body"><code>nng_http_handler_collect_body</code></a> function has been called for the handler.</p>
</div>
<p>The HTTP status should be set for the transaction using <a href="../api/http.html#http-status"><code>nng_http_set_status</code></a>.</p>
-<p>Finally, the handler should finish the operation by calling the <a href="../TODO.html"><code>nng_aio_finish</code></a> function
+<p>Finally, the handler should finish the operation by calling the <a href="../api/aio.html#finishing-an-operation"><code>nng_aio_finish</code></a> function
after having set the status to <a href="../api/errors.html#NNG_OK"><code>NNG_OK</code></a>.
If any other status is set on the <em>aio</em>, then a generic 500 response will be created and
sent, if possible, and the connection will be closed.</p>
-<p>The <em>aio</em> may be scheduled for deferred completion using the <a href="../TODO.html"><code>nng_aio_start</code></a>.</p>
+<p>The <em>aio</em> may be scheduled for deferred completion using the <a href="../api/aio.html#starting-an-operation"><code>nng_aio_start</code></a>.</p>
<h3 id="serving-directories-and-files"><a class="header" href="#serving-directories-and-files">Serving Directories and Files</a></h3>
<pre><code class="language-c">nng_err nng_http_handler_alloc_directory(nng_http_handler **hp, const char *path, const char *dirname);
nng_err nng_http_handler_alloc_file(nng_http_handler **hp, const char *path, const char *filename);