NNG_HTTP_SERVER_RELEASE(3http)
π NAME π
nng_http_server_release β release HTTP server instance. (From the NNG Reference Manual, bestie β this is your page. π)
β¨ SYNOPSIS β¨
okay so first, the include situation:
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
void nng_http_server_release(nng_http_server *server);
π DESCRIPTION π
okay so nng_http_server_release() releases an instance of an HTTP server that was previously held with nng_http_server_hold().
The way this works is it effectively drops the reference count on the server instance. When the reference count drops to zero, then the server and all resources associated with it (e.g. HTTP handlers, connections, etc.) are deallocated. And bestie, if the server is "running" when this occurs, then the server is stopped. Cleanup era. π§Ήβ¨
Important: it is an error to release an instance of a server that has not previously been held, or to attempt to release an instance more times than it has been held. Not me warning you dramatically β that's literally the rule. ππ
π«Ά RETURN VALUES π«Ά
None. Literally none, bestie. No return values to catch. π«Ά
π ERRORS π
None. The ERRORS section has no entries, periodt. π
π SEE ALSO π
mwah π this was the NNG Reference Manual situation, dated 2026-01-13, filed under NNG_HTTP_...ER_RELEASE(3http) β byeee π¦
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms