]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: streams: add support for line prefixes to strm_dump_to_buffer()
authorWilly Tarreau <w@1wt.eu>
Thu, 28 Sep 2023 06:22:51 +0000 (08:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Sep 2023 07:20:27 +0000 (09:20 +0200)
commitb206504f43e92e947f066c6592be35b379462f47
treef46ed7c06a57137baee513916a3f12d3a897c949
parent5743eeea885ef93bb9c661106cd7dc0305d374de
MINOR: streams: add support for line prefixes to strm_dump_to_buffer()

Now the function can prepend every new line with a caller-fed prefix
that will later be used for indenting. The caller has to feed the
prefix for the first line itself though, allowing to possibly append
the first line at the end of an existing one.
src/stream.c