]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: h1-htx: Move h1 headers map in h1-htx
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jul 2026 09:02:38 +0000 (11:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jul 2026 09:53:27 +0000 (11:53 +0200)
The map used to adjust the H1 headers case was moved in h1-htx part. For
this purpose h1_htx-t.h file was added and h1_hdrs_map and h1_hdr_entry
structures were moved into this file.

This commit is mandatory for the next fix.

include/haproxy/h1_htx-t.h [new file with mode: 0644]
include/haproxy/h1_htx.h
src/mux_h1.c

diff --git a/include/haproxy/h1_htx-t.h b/include/haproxy/h1_htx-t.h
new file mode 100644 (file)
index 0000000..8e6f790
--- /dev/null
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+
+#ifndef _HAPROXY_H1_HTX_T_H
+#define _HAPROXY_H1_HTX_T_H
+
+#include <import/ist.h>
+#include <import/ebpttree.h>
+
+/* Map of headers used to convert outgoing headers */
+struct h1_hdrs_map {
+       char *name;
+       struct eb_root map;
+};
+
+/* An entry in a headers map */
+struct h1_hdr_entry  {
+       struct ist name;
+       struct ebpt_node node;
+};
+
+#endif /* _HAPROXY_H1_HTX_T_H */
index 5be56cdd84c767ba1cce6b288a45e24d327a3f50..74e6fcb1b1b2407f849f2c1e8f9295c67b582185 100644 (file)
@@ -27,6 +27,7 @@
 #include <haproxy/api-t.h>
 #include <haproxy/buf-t.h>
 #include <haproxy/h1.h>
+#include <haproxy/h1_htx-t.h>
 #include <haproxy/htx.h>
 
 int h1_parse_msg_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx *dsthtx,
index 854460f902840b906520ca71dc2b5518690f504a..c42ce6d3e6d0657125acbaf87d6e615a2a6939a6 100644 (file)
@@ -80,18 +80,6 @@ struct h1s {
        char ws_key[25];       /* websocket handshake key */
 };
 
-/* Map of headers used to convert outgoing headers */
-struct h1_hdrs_map {
-       char *name;
-       struct eb_root map;
-};
-
-/* An entry in a headers map */
-struct h1_hdr_entry  {
-       struct ist name;
-       struct ebpt_node node;
-};
-
 /* Declare the headers map */
 static struct h1_hdrs_map hdrs_map = { .name = NULL, .map  = EB_ROOT };
 static int accept_payload_with_any_method = 0;