NNG_HTTP_REQ_GET_HEADER(3http)
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
- 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