]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: Add a ruleset evaluated on all responses just before forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jan 2020 08:26:35 +0000 (09:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 13:55:34 +0000 (14:55 +0100)
commit6d0c3dfac643d21478793759927dc7cfb8b1b3cd
tree055ce86aefbebfbf7c735fe6678e85bc16a17914
parenta72a7e49e8827bc40d5d71ba79439f033a84d3d6
MEDIUM: http: Add a ruleset evaluated on all responses just before forwarding

This patch introduces the 'http-after-response' rules. These rules are evaluated
at the end of the response analysis, just before the data forwarding, on ALL
HTTP responses, the server ones but also all responses generated by
HAProxy. Thanks to this ruleset, it is now possible for instance to add some
headers to the responses generated by the stats applet. Following actions are
supported :

   * allow
   * add-header
   * del-header
   * replace-header
   * replace-value
   * set-header
   * set-status
   * set-var
   * strict-mode
   * unset-var
13 files changed:
doc/configuration.txt
include/proto/http_ana.h
include/proto/http_rules.h
include/types/proxy.h
src/cfgparse-listen.c
src/cfgparse.c
src/haproxy.c
src/http_act.c
src/http_ana.c
src/http_htx.c
src/http_rules.c
src/proxy.c
src/vars.c