MINOR: lua: add AppletHTTP class and service
This class is used by Lua code for running as an applet called in HTTP mode
It defines also the associated lua service
diff --git a/include/types/applet.h b/include/types/applet.h
index 2254b0a..2e1626a 100644
--- a/include/types/applet.h
+++ b/include/types/applet.h
@@ -121,6 +121,13 @@
struct task *task;
} hlua_apptcp;
struct {
+ struct hlua hlua;
+ int left_bytes; /* The max amount of bytes that we can read. */
+ int flags;
+ int status;
+ struct task *task;
+ } hlua_apphttp;
+ struct {
struct dns_resolvers *ptr;
} resolvers;
struct {
diff --git a/include/types/hlua.h b/include/types/hlua.h
index eccfc6c..ac56c2a 100644
--- a/include/types/hlua.h
+++ b/include/types/hlua.h
@@ -18,6 +18,7 @@
#define CLASS_HTTP "HTTP"
#define CLASS_MAP "Map"
#define CLASS_APPLET_TCP "AppletTCP"
+#define CLASS_APPLET_HTTP "AppletHTTP"
struct stream;