NNG_HTTP_CLIENT_ALLOC(3http)
β¨ NAME β¨
okay so bestie, welcome to the page for NNG_HTTP_CLIENT_ALLOC(3http) from the NNG Reference Manual, manual section 3http π
nng_http_client_allocβ allocate an HTTP client π
π SYNOPSIS π
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
int nng_http_client_alloc(nng_http_client *clientp, const nng_url *url);
π DESCRIPTION π
so nng_http_client_alloc() allocates an HTTP client that is suitable for connecting to the server identified by url, and it stores a pointer to it in the location referenced by clientp. thatβs literally the whole move β¨
π RETURN VALUES π
this function returns 0 on success, and non-zero otherwise. slay β
π¨ ERRORS π¨
NNG_ENOMEMβ insufficient free memory exists πNNG_ENOTSUPβ HTTP not supported π
π SEE ALSO π
catch u later bestie π«Ά this page is from the NNG Reference Manual, dated 2026-01-13 ππ·
π¦ 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