mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
DEV: h2: add the preface as well in supported output types
It's annoying to always have to append it from a capture, let's also support producing the preface.
This commit is contained in:
parent
57b6c17099
commit
ec8ea73bc0
@ -9,7 +9,7 @@ USAGE=\
|
|||||||
Numbers are decimal or 0xhex. Not set=0. If <data> is passed, it points
|
Numbers are decimal or 0xhex. Not set=0. If <data> is passed, it points
|
||||||
to a file that is read and chunked into frames of <len> bytes. -e
|
to a file that is read and chunked into frames of <len> bytes. -e
|
||||||
encodes a headers frame (by default) with all headers at once encoded
|
encodes a headers frame (by default) with all headers at once encoded
|
||||||
in literal.
|
in literal. Use type 'p' for the preface.
|
||||||
|
|
||||||
Supported symbolic types (case insensitive prefix match):
|
Supported symbolic types (case insensitive prefix match):
|
||||||
DATA (0x00) PUSH_PROMISE (0x05)
|
DATA (0x00) PUSH_PROMISE (0x05)
|
||||||
@ -140,7 +140,9 @@ if [ -n "${ID##[0-9]*}" ]; then
|
|||||||
die
|
die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$DATA" ]; then
|
if [ "$TYPE" = "p" ]; then
|
||||||
|
printf "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
|
||||||
|
elif [ -z "$DATA" ]; then
|
||||||
HEX=""
|
HEX=""
|
||||||
# If we're trying to emit literal headers, let's pre-build the raw data
|
# If we're trying to emit literal headers, let's pre-build the raw data
|
||||||
# and measure their total length.
|
# and measure their total length.
|
||||||
|
Loading…
Reference in New Issue
Block a user