NNG_HTTP_...T_VERSION(3http)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… 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