nng
nng copied to clipboard
Can you add an example of using HTTPS requests?
Can you add an example of using HTTPS requests?
same as http only set tls auth mode like this if (strncmp("https", post_url->u_scheme, 5) == 0) { nng_http_client_get_tls(client, &tls_cfg); nng_tls_config_auth_mode(tls_cfg, NNG_TLS_AUTH_MODE_NONE); nng_tls_config_free(tls_cfg); }