]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move the HTTP rule sets to their own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 13:45:14 +0000 (15:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit7fe13de6197ee7cbe339a1c8c34b8fa85ee2c9a6
treedc4db550501d97bd58684aeae766d4e627bf1aa8
parent730eff783a8f2954034396f8ce02bd47f6320632
CLEANUP: cfgparse-listen: move the HTTP rule sets to their own parser

"http-request", "http-response" and "http-after-response" were handled
by three same blocks which only differed by the rule list, the parsing
function and the validity masks. They were moved to a new function
proxy_parse_http_rules(), making the keywords discoverable via "-dKcfg".

Note that a failure to parse the action now returns a fatal error
instead of immediately aborting the config parsing, so that some of
the remaining lines are still checked.
src/cfgparse-listen.c