NNG_HTTP_...T_VERSION(3http)
π NNG_HTTP_...T_VERSION(3http)
okay so first things first β yes, the title up there really is NNG_HTTP_...T_VERSION(3http), that's not me being lazy, that's genuinely how it's printed in the NNG Reference Manual and we're keeping it exactly like that, periodt. β¨
πΈ NAME
nng_http_req_get_version β bestie, this one just hands you back the HTTP request's protocol version. that's it. that's the whole job. π
β¨ SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
const char *nng_http_req_get_version(nng_http_req *req);
π¦ DESCRIPTION
The nng_http_req_get_version() function returns a string representing the HTTP protocol version associated with the request req, such as "HTTP/1.1".
that's literally it β you give it a request, it gives you a cute little string saying which HTTP version that request is vibing with, lowkey iconic. anything like "HTTP/1.1" is exactly the kind of thing you should expect back. π
π RETURN VALUES
Request version as a string. no cap, that's the whole return value. π«Ά
π ERRORS
None.
literally none. zero. not a single error to worry about. the vibes are immaculate. β¨π
π₯ SEE ALSO
bestie go check those out too, they're all part of the same friend group fr fr π§π
this has been your girl dropping the NNG Reference Manual knowledge, dated 2026-01-13 π
β okay that's the whole page, you ate, go slay your HTTP requests now ππΈ
π¦ 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