From 8fd15db0525b4b30a328fd458d05384e2891f49d Mon Sep 17 00:00:00 2001 From: gdamore Date: Sun, 12 Jan 2025 16:45:26 +0000 Subject: deploy: 4f445061dc9dbc1e437ff04eff6f39f021bd5bec --- ref/api/http.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ref/api/http.html') 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);

The nng_http_get_status function obtains the numeric code (typipcally numbered from 100 through 599) returned by the server in the last exchange on conn. (If no exchange has been performed yet, the result is undefined.)

A descriptive message matching the status code is returned by nng_http_get_reason.

-

The nng_http_set_status function is used on a server in a handler callback to set the status codethat will be +

The nng_http_set_status function is used on a server in a handler callback to set the status code that will be reported to the client to status, and the associated text (reason) to reason. If reason is NULL, then a built in reason based on the status will be used instead.

-- cgit v1.2.3-70-g09d2