diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-12 15:40:43 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-12 15:40:43 -0800 |
| commit | 1b1f4609c6dad724b88dfb069b2260341e582906 (patch) | |
| tree | 4fbcfcf0ae1fc700a9b4f38f45c34786d3a9c7de /docs/ref/api | |
| parent | d6de9bec7f1dbb969e872aa9e51103d70dee2316 (diff) | |
| download | nng-1b1f4609c6dad724b88dfb069b2260341e582906.tar.gz nng-1b1f4609c6dad724b88dfb069b2260341e582906.tar.bz2 nng-1b1f4609c6dad724b88dfb069b2260341e582906.zip | |
docs: update http docs for nng_http_status
Diffstat (limited to 'docs/ref/api')
| -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 da3d22d4..548339f3 100644 --- a/docs/ref/api/http.md +++ b/docs/ref/api/http.md @@ -98,9 +98,10 @@ there is little need to use this, but there are some subtle semantic differences ### HTTP Status ```c -uint16_t nng_http_get_status(nng_http *conn); +typedef enum ... nng_http_status; +nng_http_status nng_http_get_status(nng_http *conn); const char *nng_http_get_reason(nng_http_conn *conn); -void nng_http_set_status(nng_http *conn, uint16_t status, const char *reason); +void nng_http_set_status(nng_http *conn, nng_http_status status, const char *reason); ``` The {{i:`nng_http_get_status`}} function obtains the numeric code (typipcally numbered from 100 through 599) returned |
