MINOR: http_htx: add http_append_header() to append value to header
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 28 Dec 2022 10:21:31 +0000 (11:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
commita5a8552cabd05dc2fd3ffac09d33337f1c1807b6
tree6c9688d396c7e59a213f5433aa7dabfe13dc042b
parent532ebee38e83b0b406e91af88262432012d943f4
MINOR: http_htx: add http_append_header() to append value to header

Calling this function as an alternative to http_replace_header_value()
to append a new value to existing header instead of replacing the whole
header content.

If the header already contains one or multiple values: a ',' is automatically
appended before the new value.

This function is not meant for prepending (providing empty ctx value),
in which case we should consider implementing dedicated prepend
alternative function.
include/haproxy/http_htx.h
src/http_htx.c