]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: Rework conversion from a buffer to an htx structure
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Dec 2018 10:53:24 +0000 (11:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Dec 2018 16:10:16 +0000 (17:10 +0100)
commit27ba2dc6d6ec92f68ef745bd30e6a00f59802da8
tree03fea60e09bf328301fbb81bbf4d210a9bb48d70
parent7003378eac1cf120c76a789c97993228aab61d8a
MEDIUM: htx: Rework conversion from a buffer to an htx structure

Now, the function htx_from_buf() will set the buffer's length to its size
automatically. In return, the caller should call htx_to_buf() at the end to be
sure to leave the buffer hosting the HTX message in the right state. When the
caller can use the function htxbuf() to get the HTX message without any update
on the underlying buffer.
include/proto/htx.h
src/filters.c
src/flt_http_comp.c
src/flt_trace.c
src/http_fetch.c
src/http_htx.c
src/htx.c
src/mux_h1.c
src/mux_h2.c
src/proto_htx.c
src/stats.c