MINOR: htx: Add a function to copy a buffer in an HTX message
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 May 2020 12:52:49 +0000 (14:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 16:27:14 +0000 (18:27 +0200)
commit2056736453e1ce47418cdcb007db1dbdf603761e
treede5cab4b1f23c61764a4dd123f7476ca641f0460
parentf1fedc3ccec1dc0925e1b07b4238aad27116976c
MINOR: htx: Add a function to copy a buffer in an HTX message

The htx_copy_msg() function can now be used to copy the HTX message stored in a
buffer in an existing HTX message. It takes care to not overwrite existing
data. If the destination message is empty, a raw copy is performed. All the
message is copied or nothing.

This function is used instead of channel_htx_copy_msg().
include/common/htx.h
src/http_ana.c