diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-07 18:48:44 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-07 18:48:44 -0700 |
| commit | 07191755f3a38cbac48d15523095136f69d8f772 (patch) | |
| tree | 2d9209adc4c9e3774a88b8d2581513ea137e3ca2 /docs | |
| parent | 46ade0691f41ac01cb5304b82cc67e99cd280a6d (diff) | |
| download | nng-07191755f3a38cbac48d15523095136f69d8f772.tar.gz nng-07191755f3a38cbac48d15523095136f69d8f772.tar.bz2 nng-07191755f3a38cbac48d15523095136f69d8f772.zip | |
http: implement nng_http_next_header
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/api/http.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/api/http.md b/docs/ref/api/http.md index bbe33c24..b9ecca83 100644 --- a/docs/ref/api/http.md +++ b/docs/ref/api/http.md @@ -188,7 +188,7 @@ Status codes are defined by the IETF. Here are definitions that NNG provides for ```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); ``` The {{i:`nng_http_get_header`}} returns the header value matching _key_ that was received over _conn_, @@ -614,7 +614,8 @@ 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. Response headers may be set using [`nng_http_set_header`], and request headers -may be accessed by using [`nng_http_get_header`]. +may be accessed by using [`nng_http_get_header`]. They can also be iterated +over using [`nng_http_next_header`] Likewise the request body may be accessed, using [`nng_http_get_body`], and the response body may be set using either [`nng_http_set_body`] or [`nng_http_copy_body`]. |
