NNG_HTTP_REQ_GET_DATA(3http)
okay bestie, welcome to the NNG_HTTP_REQ_GET_DATA(3http) page from the NNG Reference Manual β weβre getting an HTTP request body and weβre gonna slay it πβ¨
π NAME π
nng_http_req_get_data β get HTTP request body π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
void nng_http_req_get_data(nng_http_req *req, void **bodyp, size_t *sizep);
π¦ DESCRIPTION π¦
okay so nng_http_req_get_data() gets the HTTP body associated with the request req, storing a pointer to the buffer at the location referenced by bodyp, and the length of the associated buffer at the location referenced by sizep. literally thatβs the whole vibe π«Ά
π Note: the buffer returned is owned by req, and will automatically freed when the request is freed. so yeah, do not free it yourself, bestie β the request has main character energy and handles its own cleanup π
π RETURN VALUES π
None. like, none none β nothing comes back π
πΈ ERRORS πΈ
None. no error codes, no drama, no cap π
π SEE ALSO π
go peek at those if you want the full friend-group lore π¦π
xoxo, this cutie came from the NNG Reference Manual, dated 2026-01-13 π β¨π
π¦ 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