aboutsummaryrefslogtreecommitdiff
path: root/src/Utility/HttpClient.h
blob: 6eb002cc017765eeba7ab7aa9d399bed1b271317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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