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 14d921c0417149e60bdf8d086e86d7ff5c964484
parent 7cc9ab4212deb227ce2d5731a4267401bd5e4458
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date:   Sun, 12 Dec 2021 22:44:34 +0100

Updated README + example

Diffstat:
MREADME.md | 4++--
Mexample/main.c | 3+++
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -2,7 +2,7 @@ Tiny HTTP client library in C. -Wraps native HTTP client functionality on macOS, Windows, iOS and Android in a single, simple non-blocking C API. +Wraps native HTTP client functionality on macOS, Windows, Linux, iOS and Android in a single, simple non-blocking API. ## Using `naett` @@ -14,7 +14,7 @@ See `naett.h` for reference docs. ## Platform implementations -`naett` uses the following HTTP client libraries on the different platforms: +`naett` uses the following HTTP client libraries on each platform: | Platform | Library / component | Build with | | --- | --- | --- | diff --git a/example/main.c b/example/main.c @@ -29,4 +29,7 @@ int main(int argc, char** argv) { const char* body = naettGetBody(res, &bodyLength); printf("Got a %d, %d bytes of type '%s':\n\n", naettGetStatus(res), bodyLength, naettGetHeader(res, "Content-Type")); printf("%.100s\n...\n", body); + + naettClose(res); + naettFree(req); }