diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-01-12 16:45:26 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-01-12 16:45:26 +0000 |
| commit | 8fd15db0525b4b30a328fd458d05384e2891f49d (patch) | |
| tree | 19ec307b9ac48387418cb3ae18e901c9c2b8d46b /ref/api/http.html | |
| parent | af714e1e2f09c7c4bd671dbcac38e12cdca9aee5 (diff) | |
| download | nng-8fd15db0525b4b30a328fd458d05384e2891f49d.tar.gz nng-8fd15db0525b4b30a328fd458d05384e2891f49d.tar.bz2 nng-8fd15db0525b4b30a328fd458d05384e2891f49d.zip | |
deploy: 4f445061dc9dbc1e437ff04eff6f39f021bd5bec
Diffstat (limited to 'ref/api/http.html')
| -rw-r--r-- | ref/api/http.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref/api/http.html b/ref/api/http.html index 35a23add..bec909b9 100644 --- a/ref/api/http.html +++ b/ref/api/http.html @@ -307,7 +307,7 @@ void nng_http_set_status(nng_http *conn, uint16_t status, const char *reason); <p>The <a name="a009"></a><code>nng_http_get_status</code> function obtains the numeric code (typipcally numbered from 100 through 599) returned by the server in the last exchange on <em>conn</em>. (If no exchange has been performed yet, the result is undefined.)</p> <p>A descriptive message matching the status code is returned by <a name="a010"></a><code>nng_http_get_reason</code>.</p> -<p>The <a name="a011"></a><code>nng_http_set_status</code> function is used on a server in a handler callback to set the status codethat will be +<p>The <a name="a011"></a><code>nng_http_set_status</code> function is used on a server in a handler callback to set the status code that will be reported to the client to <em>status</em>, and the associated text (reason) to <em>reason</em>. If <em>reason</em> is <code>NULL</code>, then a built in reason based on the <em>status</em> will be used instead.</p> <div class="mdbook-alerts mdbook-alerts-tip"> |
