commit | 5031ef58cae99291f34996c8352dc3cfdabe8965 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Jan 15 11:22:07 2020 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Mon Jan 20 15:18:45 2020 +0100 |
tree | 9135121feb6d87a99e27aa998fb2f59cbcbf221f | |
parent | fdb6fbfa9a7b730939865b79bfbca3af278113b8 [diff] |
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.