diff options
Diffstat (limited to 'src/Utility/HttpClient.h')
| -rw-r--r-- | src/Utility/HttpClient.h | 16 |
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 |
