]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proxy: introduce http only options
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 28 Dec 2022 13:57:55 +0000 (14:57 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
This commit is innoffensive but will allow to do some code refactors in
existing proxy http options. Newly created http related proxy options
will also benefit from this.

include/haproxy/proxy-t.h

index f1c5b03b55cd27553a632f35397a147d8d4c566e..e863299cfb27c791186d91eb0f2f8ebc0823ecf8 100644 (file)
@@ -266,6 +266,10 @@ struct error_snapshot {
        char buf[VAR_ARRAY];                    /* copy of the beginning of the message for bufsize bytes */
 };
 
+/* http options */
+struct proxy_http {
+};
+
 struct proxy {
        enum obj_type obj_type;                 /* object type == OBJ_TYPE_PROXY */
        char flags;                             /* bit field PR_FL_* */
@@ -441,6 +445,7 @@ struct proxy {
                char *elfs_file;
                int elfs_line;
        } conf;                                 /* config information */
+       struct proxy_http http;                 /* http only options */
        struct eb_root used_server_addr;        /* list of server addresses in use */
        void *parent;                           /* parent of the proxy when applicable */
        struct comp *comp;                      /* http compression */