NNG_HTTP_CLIENT_GET_TLS(3http)
πΈ NAME πΈ
nng_http_client_get_tls β get HTTP client TLS configuration.
Okay so this is the NNG_HTTP_CLIENT_GET_TLS(3http) page from the NNG Reference Manual, and it's literally about grabbing the TLS config off an HTTP client. Iconic. π
β¨ SYNOPSIS β¨
You gotta include these first, bestie:
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
int nng_http_client_get_tls(nng_http_client *client, nng_tls_config **cfgp);
π¦ DESCRIPTION π¦
The nng_http_client_get_tls() function obtains the TLS configuration of client and saves a pointer to it in the address referenced by cfgp.
The object comes back with an extra hold placed on it on behalf of the caller β that's the nng_tls_config_hold() situation, iykyk. The caller should free this hold by calling nng_tls_config_free() when they're done with the TLS configuration. No leaking, bestie. π«Ά
π RETURN VALUES π
This function returns 0 on success, and non-zero otherwise.
π₯ ERRORS π₯
NNG_EINVALβ TLS not configured on client.NNG_ENOMEMβ Insufficient free memory exists.NNG_ENOTSUPβ Either HTTP or TLS not supported.
π SEE ALSO π
nng_http_client_alloc(3http)nng_http_client_connect(3http)nng_http_client_set_tls(3http)nng_tls_config_alloc(3tls)nng_tls_config_free(3tls)nng_tls_config_hold(3tls)nng_strerror(3)nng(7)
π That's the whole page, bestie. It's from the NNG Reference Manual, dated2026-01-13, and the page isNNG_HTTP_CLIENT_GET_TLS(3http)β the footer shows it asNNG_HTTP_...NT_GET_TLS(3http). Periodt. π
π¦ 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