]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sample: Enhances converter "bytes" to take variable names as arguments
authorLokesh Jindal <15ljindal@gmail.com>
Wed, 6 Sep 2023 18:11:23 +0000 (11:11 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Sep 2023 06:48:51 +0000 (08:48 +0200)
commit915e48675ae67ae2725f3646af37862ddaf26720
tree02f7b293f78844eb676ebd93ccaaa9115881b3b5
parent6601317b3bb2ef9eca88c5d731318e1c5b10f234
MEDIUM: sample: Enhances converter "bytes" to take variable names as arguments

Prior to this commit, converter "bytes" takes only integer values as
arguments.  After this commit, it can take variable names as inputs.
This allows us to dynamically determine the offset/length and capture
them in variables.  These variables can then be used with the converter.
Example use case: parsing a token present in a request header.
doc/configuration.txt
reg-tests/converter/bytes.vtc [new file with mode: 0644]
src/sample.c