]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add a pointer to the buffer in http_msg
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Mar 2012 10:32:30 +0000 (11:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:12 +0000 (12:28 +0200)
commit62f791ea6f3f828888bf5c9a33b42363313ba1d8
tree2f3e23e87699ce537b4a4886fff2ebe4a0499d48
parent12e48b36dd6caf6b51b3f1cffb92fb4fa116e237
MEDIUM: http: add a pointer to the buffer in http_msg

ACLs and patterns only rely on a struct http_msg and don't know the pointer
to the actual data. struct http_msg will soon only hold relative references
so that's not possible. We need http_msg to hold a reference to the struct
buffer before having relative pointers everywhere.

It is likely that doing so will also result in opportunities to simplify
a number of functions arguments. The following functions are already
candidate :

http_buffer_heavy_realign
http_capture_bad_message
http_change_connection_header
http_forward_trailers
http_header_add_tail
http_header_add_tail2
http_msg_analyzer
http_parse_chunk_size
http_parse_connection_header
http_remove_header2
http_send_name_header
http_skip_chunk_crlf
http_upgrade_v09_to_v10
include/types/proto_http.h
src/proto_http.c
src/session.c