NNG_HTTP_CLIENT_FREE(3http)

πŸ“¦ version 1.11, in alpine 3.24

🌸 NAME 🌸

Okay so we're in the NNG Reference Manual, on the NNG_HTTP_CLIENT_FREE(3http) page. The star of the show is nng_http_client_free β€” free HTTP client. Yes bestie, the function name literally tells you the whole plot: it frees the HTTP client. πŸ’…

✨ SYNOPSIS ✨

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

void nng_http_client_free(nng_http_client *client);

πŸ’… DESCRIPTION πŸ’…

Okay so nng_http_client_free() frees the HTTP client and any associated resources referenced by client. Cleanup queen behavior, no cap. 🧚

Note: Any connections created by nng_http_client_connect() are unaffected, and so the caller must close those explicitly if desired. So like… this function is not out here closing your connections for you, bestie. You gotta handle that yourself. 😭

πŸŽ€ RETURN VALUES πŸŽ€

None. Literally nothing. It's giving void. 🫢

πŸ’€ ERRORS πŸ’€

None. No error era here. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹


Signed, sealed, and slayed by the NNG Reference Manual, dated 2026-01-13 πŸŒˆπŸ’–

πŸ“¦ where this page comes from