commit | 4a2c1427795bff6568a1561bc094dc7aec3681fa | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Fri Jan 31 17:36:01 2020 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Feb 06 15:13:03 2020 +0100 |
tree | 76458bcbc3612a61428791b0e0549499398bace2 | |
parent | 24231ab61f8a21a5a087989fe25f68df43ea25c7 [diff] |
MEDIUM: http-rules: Support extra headers for HTTP return actions It is now possible to append extra headers to the generated responses by HTTP return actions, while it is not based on an errorfile. For return actions based on errorfiles, these extra headers are ignored. To define an extra header, a "hdr" argument must be used with a name and a value. The value is a log-format string. For instance: http-request status 200 hdr "x-src" "%[src]" hdr "x-dst" "%[dst]"