mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-15 10:06:55 +00:00
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:
parent
f0a64b676f
commit
a30b5dbf85
@ -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;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#define CLASS_HTTP "HTTP"
|
||||
#define CLASS_MAP "Map"
|
||||
#define CLASS_APPLET_TCP "AppletTCP"
|
||||
#define CLASS_APPLET_HTTP "AppletHTTP"
|
||||
|
||||
struct stream;
|
||||
|
||||
|
992
src/hlua.c
992
src/hlua.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user