]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Introduce filter classes and per-side class ordering
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2026 16:10:21 +0000 (18:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:35 +0000 (16:17 +0200)
commit65613f07d62423564e08ce5be1ba70c9a9fc1723
tree3d8474a9debbfc85ed1237e0aae45edfec2aaf76
parentd2980c7c745de4a6657b27c85e1cd93af1f28c80
MINOR: filters: Introduce filter classes and per-side class ordering

Introduce a class registry distinct from the legacy filter keyword registry.
A class has a unique name, some flags, a instance parser and independent
request/response placement relative to other classes.

Export the built-in class names from their implementations and establish
their default order centrally. Provide registration and placement helpers
for additional classes, and reject classes placed on neither side.

Leave built-in instance parsers unset until the parser adapters are added.
This is configuration infrastructure only; stream evaluation still uses the
legacy filters. This WIP registry also unconditionally references the Lua
class: support for builds without Lua remains to be completed.
include/haproxy/filters-t.h
include/haproxy/filters.h
src/cache.c
src/fcgi-app.c
src/filters.c
src/flt_bwlim.c
src/flt_decomp.c
src/flt_http_comp.c
src/flt_spoe.c
src/flt_trace.c
src/hlua.c