From 1b1f4609c6dad724b88dfb069b2260341e582906 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2025 15:40:43 -0800 Subject: [PATCH] docs: update http docs for nng_http_status --- docs/ref/api/http.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/ref/api/http.md b/docs/ref/api/http.md index da3d22d4c..548339f34 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