]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-htx: Add functions to create HTX redirect message
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 Jan 2020 14:51:59 +0000 (15:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitbdf6526e943f34409b486fbfcdbd73c0fb4a0626
tree251c3a82ae97800bb92e825caed740136c414fa6
parent5031ef58cae99291f34996c8352dc3cfdabe8965
MINOR: http-htx: Add functions to create HTX redirect message

http_parse_errorloc() may now be used to create an HTTP 302 or 303 redirect
message with a specific url passed as parameter. A parameter is used to known if
it is a 302 or a 303 redirect. 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 "errorloc" directives. It relies on
http_load_errormsg() to do most of the job, ie converting it in HTX.
include/proto/http_htx.h
src/http_htx.c