aboutsummaryrefslogtreecommitdiffstats
path: root/include/local-def.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/local-def.h')
-rw-r--r--include/local-def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/local-def.h b/include/local-def.h
index 2f8fd202..a5d48bfd 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -60,6 +60,7 @@
#define DEFLT_API_TIMEOUT 0 // default Plugin API Timeout
#define DEFLT_CACHE_TIMEOUT 100000 // default Static File Chache [Client Side Cache 100000~=1day]
#define DEFLT_AUTH_TOKEN NULL // expect for debug should == NULL
+#define DEFLT_HTTP_TIMEOUT 15 // Max MibMicroHttp timeout
typedef int BOOL;
#ifndef FALSE
@@ -199,7 +200,8 @@ typedef struct {
const char *url;
char *plugin;
char *api;
- char *post;
+ char *post; // post data in raw format
+ int len; // post data len
json_object *jresp;
AFB_clientCtx *client; // needed because libmicrohttp cannot create an empty response
int restfull; // request is resfull [uuid token provided]