naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

commit 28855a6f3dc728770e22f98cb69c6c4e2d642bb9
parent f7dd37bb45bff33f0a14833b74b8e5b4d30791d2
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date:   Sun, 12 Dec 2021 16:19:39 +0100

Docs about body lifetime

Diffstat:
Mnaett.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/naett.h b/naett.h @@ -35,6 +35,8 @@ naettOption* naettMethod(const char* method); // Adds a request header. naettOption* naettHeader(const char* name, const char* value); // Sets the request body. Ignored if a body reader is configured. +// The body is not copied, and the passed pointer must be valid for the +// lifetime of the request. naettOption* naettBody(const char* body, int size); // Sets a request body reader. naettOption* naettBodyReader(naettReadFunc reader, void* userData);