From 0d65dcd24c8090dcc719be599cd3ef4dc2220e9b Mon Sep 17 00:00:00 2001 From: frosty Date: Thu, 12 Mar 2026 18:05:09 -0400 Subject: refactor: put HTTP and XML logic into reusable modules --- src/Utility/HttpClient.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/Utility/HttpClient.h (limited to 'src/Utility/HttpClient.h') diff --git a/src/Utility/HttpClient.h b/src/Utility/HttpClient.h new file mode 100644 index 0000000..6eb002c --- /dev/null +++ b/src/Utility/HttpClient.h @@ -0,0 +1,16 @@ +#ifndef HTTPCLIENT_H +#define HTTPCLIENT_H + +#include +#include + +typedef struct { + char *memory; + size_t size; + size_t capacity; +} HttpResponse; + +HttpResponse http_get(const char *url, const char *user_agent); +void http_response_free(HttpResponse *resp); + +#endif -- cgit v1.2.3