NNG_HTTP_CLIENT_ALLOC(3http)

πŸ“¦ version 1.11, in alpine 3.24

✨ 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