NNG_HTTP_REQ_RESET(3http)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… NNG_HTTP_REQ_RESET πŸ’…

okay so bestie, welcome to the NNG Reference Manual (3http girlies rise up ✨). this one's about nng_http_req_reset and it's honestly such a clean little glow-up function, no cap.


✨ NAME ✨

nng_http_req_reset β€” reset HTTP request structure πŸŽ€


🌸 SYNOPSIS 🌸

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

void nng_http_req_reset(nng_http_req *req);

πŸ¦‹ DESCRIPTION πŸ¦‹

The nng_http_req_reset() function resets the request req so that it is just as if it had been freshly allocated with nng_http_req_alloc() with a NULL URL. like, full factory reset energy β€” it's giving brand new, untouched, no baggage πŸ’–

Note 🫢 β€” Before using this with an HTTP operation, the URI must be set using nng_http_req_set_uri(). do NOT forget this part, bestie, this is the whole vibe check okay πŸ”₯

⭐ RETURN VALUES ⭐

None. literally nothing, it's a void function, she returns void and serves looks, periodt πŸ’…


🌈 ERRORS 🌈

None. no errors, no drama, no tears, we love a low-maintenance icon πŸ‘‘


πŸ“ SEE ALSO πŸ“


and that's the whole page babes 🧚 β€” shoutout to the NNG Reference Manual, dated 2026-01-13, and this iconic NNG_HTTP_REQ_RESET(3http) header. go reset something and slay πŸ’œπŸŒΈ

πŸ“¦ where this page comes from