MINOR: applet: Add a flag to know an applet is using HTX buffers

Multiplexers already explicitly announce their HTX support. Now it is
possible to set flags on applet, it could be handy to do the same. So, now,
HTX aware applets must set the APPLET_FL_HTX flag.
This commit is contained in:
Christopher Faulet
2025-07-29 08:29:11 +02:00
parent 1c76e4b2e4
commit 927884a3eb
6 changed files with 6 additions and 5 deletions

View File

@@ -11611,7 +11611,7 @@ static enum act_parse_ret action_register_service_http(const char **args, int *c
/* Add applet pointer in the rule. */
rule->applet.obj_type = OBJ_TYPE_APPLET;
rule->applet.flags = APPLET_FL_NEW_API;
rule->applet.flags = APPLET_FL_NEW_API|APPLET_FL_HTX;
rule->applet.name = fcn->name;
rule->applet.init = hlua_applet_http_init;
rule->applet.rcv_buf = appctx_htx_rcv_buf;