MINOR: htx: Add a function to return a block at a specific offset
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 24 Feb 2020 10:41:59 +0000 (11:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:57 +0000 (16:52 +0200)
commit607e84e30fefb84823c6c30958770aedab5cca02
tree01709e09c4ae1cfd2a6f8c417f7bd778489afca5
parent743a87fd19637e4815e20bcd7069fa94da7d4edf
MINOR: htx: Add a function to return a block at a specific offset

The htx_find_offset() function may be used to look for a block at a specific
offset in an HTX message, starting from the message head. A compound result is
returned, an htx_ret structure, with the found block and the position of the
offset in the block. If the offset is ouside of the HTX message, the returned
block is NULL.

(cherry picked from commit 1cdceb936521ca4dc06d4f57af909310ec374a5e)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/common/htx.h
src/htx.c