]> git.kaiwu.me - haproxy.git/commit
DEV: h2: mkhdr: support "--" as a delimiter between frame descriptions
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Nov 2026 14:56:55 +0000 (14:56 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Nov 2026 10:08:46 +0000 (11:08 +0100)
commit933eeefc5f19b471851932170205611f0a8fca9a
tree26d5ec2dc985790bf13509000f943d741eb32e80
parentf256419ba951c171bc69333e43c371d0354048e0
DEV: h2: mkhdr: support "--" as a delimiter between frame descriptions

Producing a sequence of different frames required one call per frame.
Now "--" may be used to delimit multiple frame descriptions on the same
command line. Each description is processed independently (options are
reset between them), and the resulting frames are emitted in the same
order. All descriptions are checked before anything is emitted, so that
an error in one of them doesn't produce a partial output. Empty
descriptions are rejected. Example:

  $ dev/h2/mkhdr -t p -- -t s -- -t h -i 1-3 -f es,eh -e :method GET \
                 -- -t ping -R 0000000000000001 -n 2
dev/h2/mkhdr.c