From 9a38cfb70f40dcfd1c2980448bf4c6f594f8db64 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 20 Sep 2022 20:12:21 +0200 Subject: [http.c] new file. --- http.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 http.c (limited to 'http.c') diff --git a/http.c b/http.c new file mode 100644 index 0000000..ffc676a --- /dev/null +++ b/http.c @@ -0,0 +1,20 @@ +/* snac - A simple, minimalistic ActivityPub instance */ +/* copyright (c) 2022 grunfink - MIT license */ + +#include "xs.h" +#include "xs_io.h" +#include "xs_encdec.h" +#include "xs_openssl.h" +#include "xs_curl.h" + +#include "snac.h" + +d_char *http_signed_request(snac *snac, char *method, char *url, + d_char *headers, + d_char *body, int b_size, + int *status, d_char **payload, int *p_size) +/* does an HTTP request */ +{ + return xs_http_request(method, url, headers, + body, b_size, status, payload, p_size); +} -- cgit v1.2.3