]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: filters: Replace filter_http_headers callback by an analyzer
authorChristopher Faulet <cfaulet@qualys.com>
Wed, 2 Dec 2015 08:57:32 +0000 (09:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Feb 2016 13:53:15 +0000 (14:53 +0100)
commit309c6418b08ee08f0df8382a02f20f0fc965c483
tree7e16e8ca2aa9bdd7fdcc0165adb5d94a75cdd731
parent2fb2880caf8a697dc765a3692c97d6bc8f7a0b7a
MEDIUM: filters: Replace filter_http_headers callback by an analyzer

This new analyzer will be called for each HTTP request/response, before the
parsing of the body. It is identified by AN_FLT_HTTP_HDRS.

Special care was taken about the following condition :

  * the frontend is a TCP proxy
  * filters are defined in the frontend section
  * the selected backend is a HTTP proxy

So, this patch explicitly add AN_FLT_HTTP_HDRS analyzer on the request and the
response channels when the backend is a HTTP proxy and when there are filters
attatched on the stream.
This patch simplifies http_request_forward_body and http_response_forward_body
functions.
include/proto/filters.h
include/types/channel.h
include/types/filters.h
src/cfgparse.c
src/filters.c
src/flt_http_comp.c
src/proto_http.c
src/proxy.c
src/stream.c