]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: http: create http_msg.c to place there some legacy HTTP parts
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 10:42:27 +0000 (11:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 16:15:13 +0000 (17:15 +0100)
commitc5a4fd5c30ba63f0737045a2f79ce89a13020b7a
tree2fd3cbc881fcb8f0002bfbf1f690df69d589c280
parentb96b77ed6eb33b0b6f5615242ac653069de5e526
REORG: http: create http_msg.c to place there some legacy HTTP parts

Lots of HTTP code still uses struct http_msg. Not only this code is
still huge, but it's part of the legacy interface. Let's move most
of these functions to a separate file http_msg.c to make it more
visible which file relies on what. It's mostly symmetrical with
what is present in http_htx.c.

The function http_transform_header_str() which used to rely on two
function pointers to look up a header was simplified to rely on
two variants http_legacy_replace_{,full_}header(), making both
sides of the function much simpler.

No code was changed beyond these moves.
Makefile
include/proto/proto_http.h
src/http_msg.c [new file with mode: 0644]
src/proto_http.c