]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: httpclient/lua: implement the headers in the response object
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 23 Sep 2021 15:54:00 +0000 (17:54 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 24 Sep 2021 12:29:36 +0000 (14:29 +0200)
commitd7df73a114a82cd70c5ec0a2d5d48b023c28ffa5
tree7e5c3956c0cec9f6c24d444beecc6bac1bc3de38
parent3956c4ead20abf750d0685205e0fece8bb343350
MINOR: httpclient/lua: implement the headers in the response object

Provide a new field "headers" in the response of the HTTPClient, which
contains all headers of the response.

This field is a multi-dimensionnal table which could be represented this
way in lua:

    headers = {
       ["content-type"] = { "text/html" },
       ["cache-control"] = { "no-cache" }
    }
src/hlua.c