Add global state initialization functions

This commit is contained in:
2025-07-21 21:37:02 +02:00
parent a2912b5191
commit 58f8ace725
17 changed files with 242 additions and 94 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ int main(void)
// Perform the request. This will block the thread
// until an error occurs or the request completes.
HTTP_Response *res = http_get(
HTTP_STR("http://example.com/index.html"),
HTTP_STR("http://coz.is/index.html"),
headers, HTTP_COUNT(headers)
);
@@ -45,7 +45,7 @@ int main(void)
// When we are done reading from the response object
// we must free the request's resources.
http_request_free(res);
http_response_free(res);
// All done. Deinitialize the library.
http_global_free();