diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-10-08 21:54:34 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-10-08 21:54:34 +0000 |
| commit | 321a372a0c6d859f47e1099a76b13fee8d9efe88 (patch) | |
| tree | a84c4829258d789b1f2b5890f3f3ec6056103c1e /ref/api/http.html | |
| parent | f1e6bd1e5b89f96164c2ecee56a912ae6995cfae (diff) | |
| download | nng-321a372a0c6d859f47e1099a76b13fee8d9efe88.tar.gz nng-321a372a0c6d859f47e1099a76b13fee8d9efe88.tar.bz2 nng-321a372a0c6d859f47e1099a76b13fee8d9efe88.zip | |
deploy: af596b6ccf14b4d2fc2f5c6ef04870186d99d828
Diffstat (limited to 'ref/api/http.html')
| -rw-r--r-- | ref/api/http.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ref/api/http.html b/ref/api/http.html index aac5ec43..67c7048e 100644 --- a/ref/api/http.html +++ b/ref/api/http.html @@ -410,7 +410,7 @@ for display to users.</p> </div> <h3 id="retrieving-headers"><a class="header" href="#retrieving-headers">Retrieving Headers</a></h3> <pre><code class="language-c">const char *nng_http_get_header(nng_http *conn, const char *key); -bool nng_next_header(nng_http *conn, const char **keyp, const char **valuep, void **next); +bool nng_http_next_header(nng_http *conn, const char **keyp, const char **valuep, void **next); </code></pre> <p>The <a name="a013"></a><code>nng_http_get_header</code> returns the header value matching <em>key</em> that was received over <em>conn</em>, or <code>NULL</code> if no such header exists.</p> @@ -776,7 +776,8 @@ final argument is the <a href="/api/aio.html#asynchronous-io-handle"><code>nng_a it may simply let the framework do so on its behalf. The server will perform this step if the callback has not already done so.</p> <p>Response headers may be set using <a href="/api/http.html#modifying-headers"><code>nng_http_set_header</code></a>, and request headers -may be accessed by using <a href="/api/http.html#retrieving-headers"><code>nng_http_get_header</code></a>.</p> +may be accessed by using <a href="/api/http.html#retrieving-headers"><code>nng_http_get_header</code></a>. They can also be iterated +over using <a href="/api/http.html#retrieving-headers"><code>nng_http_next_header</code></a></p> <p>Likewise the request body may be accessed, using <a href="/api/http.html#retrieving-body-content"><code>nng_http_get_body</code></a>, and the response body may be set using either <a href="/api/http.html#storing-body-content"><code>nng_http_set_body</code></a> or <a href="/api/http.html#storing-body-content"><code>nng_http_copy_body</code></a>.</p> <div class="mdbook-alerts mdbook-alerts-note"> |
