From 1bec937076d8d40f94ff4603479f21bca2de6c61 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 4 Aug 2019 11:03:38 +0200 Subject: Added http lib and basic restapi with rocket_close_im binary --- common/http.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/http.h (limited to 'common/http.h') diff --git a/common/http.h b/common/http.h new file mode 100644 index 0000000..ed63c9f --- /dev/null +++ b/common/http.h @@ -0,0 +1,10 @@ +#ifndef COMMON_HTTP_H_ +#define COMMON_HTTP_H_ + +void http_add_header(const char* name, const char* value); +void http_clean(void); +const char * http_get(const char* path); +void http_init(void); +const char * http_post(const char* path, const char* postfields); + +#endif -- cgit v1.2.3