]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1: make the H1 headers block parser able to parse headers only
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 09:48:03 +0000 (10:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 09:48:03 +0000 (10:48 +0100)
commit0f8fb6b7f914882a37290178e11295264f0e0ea8
tree0c72e1591f1961a244a924c7eb62e87d278343c8
parent7eeb10a5b5bc0c82b9ce200ee8c0588fede051f0
MINOR: h1: make the H1 headers block parser able to parse headers only

Currently the H1 headers parser works for either a request or a response
because it starts from the start line. It is also able to resume its
processing when it was interrupted, but in this case it doesn't update
the list.

Make it support a new flag, H1_MF_HDRS_ONLY so that the caller can
indicate it's only interested in the headers list and not the start
line. This will be convenient to parse H1 trailers.
include/common/h1.h
src/h1.c