NNG_HTTP_RES_RESET(3http)

πŸ“¦ version 1.11, in alpine 3.24

okay so bestie, welcome to the NNG_HTTP_RES_RESET(3http) page from the NNG Reference Manual. It’s short, it’s sweet, and it’s all about resetting an HTTP response so it’s giving freshly-allocated energy. ✨

🌸 NAME 🌸

nng_http_res_reset β€” reset HTTP response structure. πŸ’…

✨ SYNOPSIS ✨

#include <nng/nng.h>
#include <nng/supplemental/http/http.h>

void nng_http_res_reset(nng_http_res *res);

πŸ¦‹ DESCRIPTION πŸ¦‹

The nng_http_res_reset() function resets the response res so that it is just as if it had been freshly allocated with nng_http_res_alloc(). That’s the whole plot, bestie: hand over your nng_http_res *res, and it comes back with that brand-new nng_http_res_alloc() state. iconic. πŸ’–

🫢 RETURN VALUES 🫢

None. Like, literally no return value β€” the function is void, so don’t go looking for a result. 🫢

πŸ’€ ERRORS πŸ’€

None. No errors to report. Not a single one. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

go check these out too, bestie:


xoxo, your NNG Reference Manual bestie πŸ’… β€” page NNG_HTTP_RES_RESET(3http), dated 2026-01-13. periodt. πŸŽ€

πŸ“¦ where this page comes from