]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-htx: Add functions to read a raw error file and convert it in HTX
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jan 2020 10:22:07 +0000 (11:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit5031ef58cae99291f34996c8352dc3cfdabe8965
tree9135121feb6d87a99e27aa998fb2f59cbcbf221f
parentfdb6fbfa9a7b730939865b79bfbca3af278113b8
MINOR: http-htx: Add functions to read a raw error file and convert it in HTX

http_parse_errorfile() may now be used to parse a raw HTTP message from a
file. A status code is passed as parameter. It must be one of the supported HTTP
error codes to be valid. Otherwise an error is returned. It aims to be used to
parse "errorfile" directives. It relies on http_load_errorfile() to do most of
the job, ie reading the file content and converting it in HTX.
include/proto/http_htx.h
src/http_htx.c