MINOR: http_htx: add http_prepend_header() to prepend value to header
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 5 Jan 2023 16:02:19 +0000 (17:02 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
commit38ebffaf10d6bb23c9e6be3efcf7ec134b57b617
tree4f4a0b81cfa09b306a2d435f03bf7b2634eb68fe
parenta5a8552cabd05dc2fd3ffac09d33337f1c1807b6
MINOR: http_htx: add http_prepend_header() to prepend value to header

Just like http_append_header(), but this time to insert new value before
an existing one.

If the header already contains one or multiple values, ',' is automatically
inserted after the new value.
include/haproxy/http_htx.h
src/http_htx.c