NNG_HTTP_...T_VERSION(3http)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… nng_http_res_get_version β€” return HTTP response protocol version

okay so we're in the NNG Reference Manual, bestie, and today's main character is nng_http_res_get_version (header stans may know the page as NNG_HTTP_...T_VERSION(3http)). She's lowkey a one-job icon: hand you the HTTP protocol version string. 🫢


✨ NAME ✨

nng_http_res_get_version β€” return HTTP response protocol version

🌸 SYNOPSIS 🌸

#include <nng/nng.h>
#include <nng/supplemental/http/http.h>

const char *nng_http_res_get_version(nng_http_res *res);

πŸ¦‹ DESCRIPTION πŸ¦‹

The nng_http_res_get_version() returns a string representing the HTTP protocol version associated with the request res, such as "HTTP/1.1". That's the whole serve, no notes. ✨

πŸŽ€ RETURN VALUES πŸŽ€

Response version as a string. πŸ’–

🚨 ERRORS 🚨

None. literally none, not a single one. no cap. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€


bye bestie! This page is from the NNG Reference Manual, with a date of 2026-01-13, and it's filed under NNG_HTTP_...T_VERSION(3http). mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from