NNG_HTTP_CLIENT_SET_TLS(3http)
β¨ NAME β¨
nng_http_client_set_tls β set HTTP client TLS configuration π
okay bestie, this is a page from the NNG Reference Manual for nng_http_client_set_tls(3http), and it's literally about giving your HTTP client its TLS configuration. π
π SYNOPSIS π
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
int nng_http_client_set_tls(nng_http_client *client, nng_tls_config *cfg);
π DESCRIPTION π
The nng_http_client_set_tls() function sets the TLS configuration of client to cfg. slay. β¨
This change overwrites any previous TLS configuration.
Important π This also invalidates any previously obtained values from nng_http_client_get_tls().
Note π«Ά Any connections established with nng_http_client_connect() will continue to use any TLS configuration that they were started with.
π₯ RETURN VALUES π₯
This function returns 0 on success, and non-zero otherwise.
πΈ ERRORS πΈ
NNG_ENOMEMβ Insufficient free memory exists.NNG_ENOTSUPβ Either HTTP or TLS not supported.
π SEE ALSO π
go read these bestie, iykyk:
nng_http_client_alloc(3http)nng_http_client_connect(3http)nng_http_client_get_tls(3http)nng_tls_config_alloc(3tls)nng_strerror(3)nng(7)
mwah π«Ά β this was the NNG Reference Manual page for nng_http_client_set_tls(3http), 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