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
This commit is contained in:
Thierry FOURNIER 2015-09-18 09:04:27 +02:00 committed by Willy Tarreau
parent f0a64b676f
commit a30b5dbf85
3 changed files with 997 additions and 3 deletions

View File

@ -120,6 +120,13 @@ struct appctx {
int flags;
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;

View File

@ -18,6 +18,7 @@
#define CLASS_HTTP "HTTP"
#define CLASS_MAP "Map"
#define CLASS_APPLET_TCP "AppletTCP"
#define CLASS_APPLET_HTTP "AppletHTTP"
struct stream;

File diff suppressed because it is too large Load Diff