Initial commit (squashed)

This commit is contained in:
2019-09-27 22:56:07 -04:00
commit 564a17a8fa
75 changed files with 7518 additions and 0 deletions

19
src/index/web.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef SIST2_WEB_H
#define SIST2_WEB_H
#include "src/sist.h"
typedef struct response {
char *body;
size_t size;
int status_code;
} response_t;
response_t *web_get(const char *url);
response_t *web_post(const char * url, const char * data, const char* header);
response_t *web_put(const char *url, const char *data, const char *header);
response_t *web_delete(const char *url);
void free_response(response_t *resp);
#endif