aboutsummaryrefslogtreecommitdiff
path: root/src/Utility/HttpClient.h
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-03-12 18:05:09 -0400
committerfrosty <gabriel@bwaaa.monster>2026-03-12 18:05:09 -0400
commit0d65dcd24c8090dcc719be599cd3ef4dc2220e9b (patch)
tree4fc3eaf09d7a41b6b96ccee9637b2e8bdff77f6c /src/Utility/HttpClient.h
parentc802a4784ab70e0a7512dac0419727fdefacd75c (diff)
downloadomnisearch-0d65dcd24c8090dcc719be599cd3ef4dc2220e9b.tar.gz
refactor: put HTTP and XML logic into reusable modules
Diffstat (limited to 'src/Utility/HttpClient.h')
-rw-r--r--src/Utility/HttpClient.h16
1 files changed, 16 insertions, 0 deletions
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 <curl/curl.h>
+#include <stddef.h>
+
+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