diff options
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 20 |
1 files changed, 20 insertions, 0 deletions
| @@ -0,0 +1,20 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | ||
| 2 | /* copyright (c) 2022 grunfink - MIT license */ | ||
| 3 | |||
| 4 | #include "xs.h" | ||
| 5 | #include "xs_io.h" | ||
| 6 | #include "xs_encdec.h" | ||
| 7 | #include "xs_openssl.h" | ||
| 8 | #include "xs_curl.h" | ||
| 9 | |||
| 10 | #include "snac.h" | ||
| 11 | |||
| 12 | d_char *http_signed_request(snac *snac, char *method, char *url, | ||
| 13 | d_char *headers, | ||
| 14 | d_char *body, int b_size, | ||
| 15 | int *status, d_char **payload, int *p_size) | ||
| 16 | /* does an HTTP request */ | ||
| 17 | { | ||
| 18 | return xs_http_request(method, url, headers, | ||
| 19 | body, b_size, status, payload, p_size); | ||
| 20 | } | ||