]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: http: move HTTP rules parsing to http_rules.c
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2018 14:43:32 +0000 (16:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2018 16:28:05 +0000 (18:28 +0200)
commit61c112aa5bf5f2b9bb2ad55f00c4c9952022dc29
tree5521affae4dede2ef709b46d7b0d9b2b1c2719a1
parent79e57336b5ff4b968cf280ccee87a02a8deafe9a
REORG: http: move HTTP rules parsing to http_rules.c

These ones are mostly called from cfgparse.c for the parsing and do
not depend on the HTTP representation. The functions's prototypes
were moved to proto/http_rules.h, making this file work exactly like
tcp_rules. Ideally we should stop calling these functions directly
from cfgparse and register keywords, but there are a few cases where
that wouldn't work (stats http-request) so it's probably not worth
trying to go this far.
19 files changed:
Makefile
include/proto/http_rules.h [new file with mode: 0644]
include/proto/proto_http.h
include/proto/stream.h
include/types/proto_http.h
src/cache.c
src/cfgparse.c
src/flt_spoe.c
src/haproxy.c
src/hlua.c
src/http_act.c
src/http_rules.c [new file with mode: 0644]
src/proto_http.c
src/proto_tcp.c
src/queue.c
src/ssl_sock.c
src/stick_table.c
src/stream.c
src/vars.c