MEDIUM: http: add actions "replace-header" and "replace-values" in http-req/resp
authorSasha Pachev <sasha@asksasha.com>
Mon, 16 Jun 2014 18:05:59 +0000 (12:05 -0600)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Jun 2014 16:34:32 +0000 (18:34 +0200)
commit218f064f55b80b1d2677dee8da26de35faa992e6
tree5d9ef1df140460a15c04165ba5141083d7463e82
parentf5b1cc38b83436b95221ffcf7e8f1c7ab1bad3b8
MEDIUM: http: add actions "replace-header" and "replace-values" in http-req/resp

This patch adds two new actions to http-request and http-response rulesets :
  - replace-header : replace a whole header line, suited for headers
                     which might contain commas
  - replace-value  : replace a single header value, suited for headers
                     defined as lists.

The match consists in a regex, and the replacement string takes a log-format
and supports back-references.
doc/configuration.txt
include/proto/proto_http.h
include/types/proto_http.h
src/haproxy.c
src/proto_http.c