MINOR: http-htx: Use a dedicated function to parse http reply arguments
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 May 2020 12:36:55 +0000 (14:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 16:27:13 +0000 (18:27 +0200)
commit47e791e22028df1f630b7a64afba46b225ab84d3
tree5c4216218c020463e19046d44ac6b3f3af3740a9
parent18630643a9b8de6f1b7392cb4ea7849bf67ccb78
MINOR: http-htx: Use a dedicated function to parse http reply arguments

A dedicated function to parse arguments and create an http_reply object is
added. It is used to parse http return rule. Thus, following arguments are
parsed by this function :

  ... [status <code>] [content-type <type>]
      [ { default-errorfiles | errorfile <file> | errorfiles <name> |
          file <file> | lf-file <file> | string <str> | lf-string <fmt> } ]
      [ hdr <name> <fmt> ]*

Because the status code argument is optional, a default status code must be
defined when this function is called.
include/proto/http_htx.h
src/http_act.c
src/http_htx.c