]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:12:59 +0000 (14:12 +0100)
commit1cdceb936521ca4dc06d4f57af909310ec374a5e
tree46d1ee55e80df6ac449872d02a9f7de7459bd3a4
parent251f4917c3442c6c2716daca667c3022dda484ad
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.
include/common/htx.h
src/htx.c