NNG_HTTP_REQ_GET_HEADER(3http)

πŸ“¦ version 1.11, in alpine 3.24

okay so bestie, this is the <hotpink>nng_http_req_get_header</hotpink> page from the NNG Reference Manual (3http section), and it’s giving β€œfind me that header value” energy πŸ’…βœ¨

✨ NAME ✨

nng_http_req_get_header β€” return HTTP request header

πŸŽ€ SYNOPSIS πŸŽ€

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

const char *nng_http_req_get_header(nng_http_req *req, const char *key);

πŸ’– DESCRIPTION πŸ’–

nng_http_req_get_header() looks for an HTTP header key in the request req, and returns the associated value if found, or NULL if not found. no cap 🫢

The key value is case insensitive, and it should not include the final colon in an HTTP header. For example, specifying Host or hOSt are equivalent, whereas the value Host: will not find anything. periodt πŸ’…

🌸 RETURN VALUES 🌸

Returns the HTTP header value for key, if it exists, or NULL otherwise. that’s the whole vibe check πŸ¦‹

πŸ’€ ERRORS πŸ’€

None. literally no error side quest here, bestie ✨

🫢 SEE ALSO 🫢


Source/version + date, for the record: NNG_HTTP_...GET_HEADER(3http) from the NNG Reference Manual, dated 2026-01-13. slay, go get those headers πŸ‘‘πŸ’–

πŸ“¦ where this page comes from