diff options
author | Julien Dessaux | 2019-08-04 11:03:38 +0200 |
---|---|---|
committer | Julien Dessaux | 2019-08-05 13:28:51 +0200 |
commit | 1bec937076d8d40f94ff4603479f21bca2de6c61 (patch) | |
tree | d811f0155c09149e9ade2016e224d58b2fbf6d81 /common/http.h | |
parent | Added configuration file parsing (diff) | |
download | rocket-cli-client-1bec937076d8d40f94ff4603479f21bca2de6c61.tar.gz rocket-cli-client-1bec937076d8d40f94ff4603479f21bca2de6c61.tar.bz2 rocket-cli-client-1bec937076d8d40f94ff4603479f21bca2de6c61.zip |
Added http lib and basic restapi with rocket_close_im binary
Diffstat (limited to '')
-rw-r--r-- | common/http.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |