]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: split common/htx.h into haproxy/htx{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Jun 2020 06:44:35 +0000 (08:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
Most of the file was a large set of HTX elements manipulation functions
and few types, so splitting them allowed to further reduce dependencies
and shrink the build time. Doing so revealed that a few files (h2.c,
mux_pt.c) needed haproxy/buf.h and were previously getting it through
htx.h. They were fixed.

29 files changed:
contrib/prometheus-exporter/service-prometheus.c
include/common/h2.h
include/haproxy/htx-t.h [new file with mode: 0644]
include/haproxy/htx.h [moved from include/common/htx.h with 71% similarity]
include/proto/channel.h
include/proto/fcgi-app.h
include/proto/http_ana.h
include/proto/http_fetch.h
include/types/http_htx.h
src/backend.c
src/cache.c
src/checks.c
src/filters.c
src/flt_http_comp.c
src/flt_trace.c
src/h1_htx.c
src/h2.c
src/http_ana.c
src/http_fetch.c
src/http_htx.c
src/htx.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/payload.c
src/sample.c
src/stats.c
src/stream.c

index a07727e2e90c653238b232798fd6c20b106202fa..916e5c706cd30b531a5e644d8863b26e2e983abf 100644 (file)
@@ -16,7 +16,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
 
index 42c3c5a01d323f9b018c51e79c465294b0e04ff7..751989d7f66e7b9b054b6973bc30fff83c435978 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <haproxy/api.h>
 #include <haproxy/http-hdr-t.h>
-#include <common/htx.h>
+#include <haproxy/htx-t.h>
 #include <import/ist.h>
 
 
diff --git a/include/haproxy/htx-t.h b/include/haproxy/htx-t.h
new file mode 100644 (file)
index 0000000..49797d2
--- /dev/null
@@ -0,0 +1,229 @@
+/*
+ * include/haproxy/htx-t.h
+ * This file declares the types and constants used the internal HTTP messages
+ *
+ * Copyright (C) 2018 HAProxy Technologies, Christopher Faulet <cfaulet@haproxy.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation, version 2.1
+ * exclusively.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef _HAPROXY_HTX_T_H
+#define _HAPROXY_HTX_T_H
+
+#include <haproxy/api.h>
+#include <haproxy/http-t.h>
+
+/*
+ * The internal representation of an HTTP message, called HTX, is a structure
+ * with useful information on the message followed by a contiguous array
+ * containing parts of the message, called blocks. A block is composed of
+ * metadata (htx_blk) and the associated payload. Blocks' metadata are stored
+ * starting from the end of the array while their payload are stored at the
+ * beginning. Blocks' metadata are often simply called blocks. it is a misuse of
+ * language that's simplify explanations.
+ *
+ *
+ *  +-----+---------------+------------------------------+--------------+
+ *  | HTX |  PAYLOADS ==> |                              | <== HTX_BLKs |
+ *  +-----+---------------+------------------------------+--------------+
+ *        ^
+ *        blocks[] (the beginning of the bocks array)
+ *
+ *
+ * The blocks part remains linear and sorted. You may think about it as an array
+ * with negative indexes. But, instead of using negative indexes, we use
+ * positive positions to identify a block. This position is then converted to a
+ * address relatively to the beginning of the blocks array.
+ *
+ *
+ *      .....--+------------------------------+-----+-----+
+ *             |                       ...    | BLK | BLK |
+ *      .....--+------------------------------+-----+-----+
+ *                                            ^     ^
+ *                            Addr of the block     Addr of the block
+ *                            at the position 1     at the position 0
+ *
+ *
+ * The payloads part is a raw space that may wrap. You never access to a block's
+ * payload directly. Instead you get a block to retrieve the address of its
+ * payload. When no more space left between blocks and payloads parts, the free
+ * space at the beginning, if any, is used.
+ *
+ *
+ *        +----------- WRAPPING ------------------------+
+ *        |                                             |
+ *        V                                             |
+ *  +-----+-------------+---------------+---------------++--------------+
+ *  | HTX | PAYLOAD ==> |               |  PAYLOADS ==X || X== HTX_BLKs |
+ *  +-----+-------------+---------------+---------------++--------------+
+ *
+ *
+ * The blocks part, on its side, never wrap. If we have no space to allocate a
+ * new block and if there is a hole at the beginning of the blocks part (so at
+ * the end of the blocks array), we move back all blocks.x
+ *
+ *
+ *    ...+--------------+----------+   blocks  ...+----------+--------------+
+ *       | X== HTX_BLKS |          |   defrag     |          | <== HTX_BLKS |
+ *    ...+--------------+----------+   =====>  ...+----------+--------------+
+ *
+ *
+ * At the end, if payload wrapping or blocks defragmenation is not enough, some
+ * free space may be get back with a full defragmenation. This way, the holes in
+ * the middle are not reusable but count in the available free space. The only
+ * way to reuse this lost space is to fully defragmenate the HTX message.
+ *
+ *                                   - * -
+ *
+ * An HTX block is as well a header as a body part or a trailer. For all these
+ * types of block, a payload is attached to the block. It can also be a mark,
+ * like the end-of-headers or end-of-message. For these blocks, there is no
+ * payload but it count for a byte. It is important to not skip it when data are
+ * forwarded. Metadata of an HTX block are composed of 2 fields :
+ *
+ *     - .info : It a 32 bits field containing the block's type on 4 bits
+ *               followed by the payload length. See below for details.
+ *
+ *     - .addr : The payload's address, if any, relatively to the beginning the
+ *               array used to store the HTX message itself.
+ *
+ * htx_blk.info representation :
+ *
+ *   0b 0000 0000 0000 0000 0000 0000 0000 0000
+ *      ---- ------------------------ ---------
+ *      type     value (1 MB max)     name length (header/trailer)
+ *           ----------------------------------
+ *                data length (256 MB max)
+ *    (body, method, path, version, status, reason)
+ *
+ *   types :
+ *     - 0000 = request  start-line
+ *     - 0001 = response start-line
+ *     - 0010 = header
+ *     - 0011 = pseudo-header ou "special" header
+ *     - 0100 = end-of-headers
+ *     - 0101 = data
+ *     - 0110 = trailer
+ *     - 0111 = end-of-trailers
+ *     - 1000 = end-of-message
+ *       ...
+ *     - 1111 = unused
+ *
+ */
+
+/* HTX start-line flags */
+#define HTX_SL_F_NONE           0x00000000
+#define HTX_SL_F_IS_RESP        0x00000001 /* It is the response start-line (unset means the request one) */
+#define HTX_SL_F_XFER_LEN       0x00000002 /* The message xfer size can be dertermined */
+#define HTX_SL_F_XFER_ENC       0x00000004 /* The transfer-encoding header was found in message */
+#define HTX_SL_F_CLEN           0x00000008 /* The content-length header was found in message */
+#define HTX_SL_F_CHNK           0x00000010 /* The message payload is chunked */
+#define HTX_SL_F_VER_11         0x00000020 /* The message indicates version 1.1 or above */
+#define HTX_SL_F_BODYLESS       0x00000040 /* The message has no body (content-length = 0) */
+#define HTX_SL_F_HAS_SCHM       0x00000080 /* The scheme is explicitly specified */
+#define HTX_SL_F_SCHM_HTTP      0x00000100 /* The scheme HTTP should be used */
+#define HTX_SL_F_SCHM_HTTPS     0x00000200 /* The scheme HTTPS should be used */
+#define HTX_SL_F_HAS_AUTHORITY  0x00000400 /* The request authority is explicitly specified */
+#define HTX_SL_F_NORMALIZED_URI 0x00000800 /* The received URI is normalized (an implicit absolute-uri form) */
+
+
+/* HTX flags */
+#define HTX_FL_NONE              0x00000000
+#define HTX_FL_PARSING_ERROR     0x00000001 /* Set when a parsing error occurred */
+#define HTX_FL_PROCESSING_ERROR  0x00000002 /* Set when a processing error occurred */
+#define HTX_FL_UPGRADE           0x00000004 /* Set when an upgrade is in progress */
+#define HTX_FL_PROXY_RESP        0x00000008 /* Set when the response was generated by HAProxy */
+
+
+/* HTX block's type (max 15). */
+enum htx_blk_type {
+       HTX_BLK_REQ_SL =  0, /* Request start-line */
+       HTX_BLK_RES_SL =  1, /* Response start-line */
+       HTX_BLK_HDR    =  2, /* header name/value block */
+       HTX_BLK_EOH    =  3, /* end-of-headers block */
+       HTX_BLK_DATA   =  4, /* data block */
+       HTX_BLK_TLR    =  5, /* trailer name/value block */
+       HTX_BLK_EOT    =  6, /* end-of-trailers block */
+       HTX_BLK_EOM    =  7, /* end-of-message block */
+       /* 8 .. 14 unused */
+       HTX_BLK_UNUSED = 15, /* unused/removed block */
+};
+
+/* One HTX block descriptor */
+struct htx_blk {
+       uint32_t addr; /* relative storage address of the block's payload */
+       uint32_t info; /* information about the block (type, length) */
+};
+
+/* Composite return value used by some HTX functions */
+struct htx_ret {
+       int32_t ret;         /* A numerical value */
+       struct htx_blk *blk; /* An HTX block */
+};
+
+/* HTX start-line */
+struct htx_sl {
+       unsigned int flags; /* HTX_SL_F_* */
+       union {
+               struct {
+                       enum http_meth_t meth;   /* method */
+               } req;
+               struct {
+                       uint16_t         status; /* status code */
+               } res;
+       } info;
+
+       /* XXX 2 bytes unused */
+
+       int32_t hdrs_bytes;  /* Bytes held by all headers, as seen by the mux
+                             * during parsing, from this start-line to the
+                             * corresponding EOH. -1 if unknown */
+
+       unsigned int len[3]; /* length of different parts of the start-line */
+       char         l[0];
+};
+
+/* Internal representation of an HTTP message */
+struct htx {
+       uint32_t size;   /* the array size, in bytes, used to store the HTTP message itself */
+       uint32_t data;   /* the data size, in bytes. To known to total size used by all allocated
+                         * blocks (blocks and their contents), you need to add size used by blocks,
+                         * i.e. [ used * sizeof(struct htx_blk *) ] */
+
+       int32_t tail;   /* newest inserted block. -1 if the HTX message is empty */
+       int32_t head;   /* oldest inserted block. -1 if the HTX message is empty */
+       int32_t first;  /* position of the first block to (re)start the analyse. -1 if unset. */
+
+       uint32_t tail_addr; /* start address of the free space in front of the the blocks table */
+       uint32_t head_addr; /* start address of the free space at the beginning */
+       uint32_t end_addr;  /* end address of the free space at the beginning */
+
+       uint64_t extra;  /* known bytes amount remaining to receive */
+       uint32_t flags;  /* HTX_FL_* */
+
+       /* XXX 4 bytes unused */
+
+       /* Blocks representing the HTTP message itself */
+       char blocks[0] __attribute__((aligned(8)));
+};
+
+#endif /* _HAPROXY_HTX_T_H */
+
+/*
+ * Local variables:
+ *  c-indent-level: 8
+ *  c-basic-offset: 8
+ * End:
+ */
similarity index 71%
rename from include/common/htx.h
rename to include/haproxy/htx.h
index 1b111a40e7040044514758b06acd208f447a316d..c0b56666381aea3226270285545f32cdb2fde530 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/common/htx.h
+ * include/haproxy/htx.h
  * This file defines everything related to the internal HTTP messages.
  *
  * Copyright (C) 2018 HAProxy Technologies, Christopher Faulet <cfaulet@haproxy.com>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _COMMON_HTX_H
-#define _COMMON_HTX_H
+#ifndef _HAPROXY_HTX_H
+#define _HAPROXY_HTX_H
 
-#include <stdio.h>
+#include <import/ist.h>
 #include <haproxy/api.h>
 #include <haproxy/buf.h>
-#include <import/ist.h>
 #include <haproxy/chunk.h>
 #include <haproxy/http-t.h>
 #include <haproxy/http-hdr-t.h>
-
-/*
- * The internal representation of an HTTP message, called HTX, is a structure
- * with useful information on the message followed by a contiguous array
- * containing parts of the message, called blocks. A block is composed of
- * metadata (htx_blk) and the associated payload. Blocks' metadata are stored
- * starting from the end of the array while their payload are stored at the
- * beginning. Blocks' metadata are often simply called blocks. it is a misuse of
- * language that's simplify explanations.
- *
- *
- *  +-----+---------------+------------------------------+--------------+
- *  | HTX |  PAYLOADS ==> |                              | <== HTX_BLKs |
- *  +-----+---------------+------------------------------+--------------+
- *        ^
- *        blocks[] (the beginning of the bocks array)
- *
- *
- * The blocks part remains linear and sorted. You may think about it as an array
- * with negative indexes. But, instead of using negative indexes, we use
- * positive positions to identify a block. This position is then converted to a
- * address relatively to the beginning of the blocks array.
- *
- *
- *      .....--+------------------------------+-----+-----+
- *             |                       ...    | BLK | BLK |
- *      .....--+------------------------------+-----+-----+
- *                                            ^     ^
- *                            Addr of the block     Addr of the block
- *                            at the position 1     at the position 0
- *
- *
- * The payloads part is a raw space that may wrap. You never access to a block's
- * payload directly. Instead you get a block to retrieve the address of its
- * payload. When no more space left between blocks and payloads parts, the free
- * space at the beginning, if any, is used.
- *
- *
- *        +----------- WRAPPING ------------------------+
- *        |                                             |
- *        V                                             |
- *  +-----+-------------+---------------+---------------++--------------+
- *  | HTX | PAYLOAD ==> |               |  PAYLOADS ==X || X== HTX_BLKs |
- *  +-----+-------------+---------------+---------------++--------------+
- *
- *
- * The blocks part, on its side, never wrap. If we have no space to allocate a
- * new block and if there is a hole at the beginning of the blocks part (so at
- * the end of the blocks array), we move back all blocks.x
- *
- *
- *    ...+--------------+----------+   blocks  ...+----------+--------------+
- *       | X== HTX_BLKS |          |   defrag     |          | <== HTX_BLKS |
- *    ...+--------------+----------+   =====>  ...+----------+--------------+
- *
- *
- * At the end, if payload wrapping or blocks defragmenation is not enough, some
- * free space may be get back with a full defragmenation. This way, the holes in
- * the middle are not reusable but count in the available free space. The only
- * way to reuse this lost space is to fully defragmenate the HTX message.
- *
- *                                   - * -
- *
- * An HTX block is as well a header as a body part or a trailer. For all these
- * types of block, a payload is attached to the block. It can also be a mark,
- * like the end-of-headers or end-of-message. For these blocks, there is no
- * payload but it count for a byte. It is important to not skip it when data are
- * forwarded. Metadata of an HTX block are composed of 2 fields :
- *
- *     - .info : It a 32 bits field containing the block's type on 4 bits
- *               followed by the payload length. See below for details.
- *
- *     - .addr : The payload's address, if any, relatively to the beginning the
- *               array used to store the HTX message itself.
- *
- * htx_blk.info representation :
- *
- *   0b 0000 0000 0000 0000 0000 0000 0000 0000
- *      ---- ------------------------ ---------
- *      type     value (1 MB max)     name length (header/trailer)
- *           ----------------------------------
- *                data length (256 MB max)
- *    (body, method, path, version, status, reason)
- *
- *   types :
- *     - 0000 = request  start-line
- *     - 0001 = response start-line
- *     - 0010 = header
- *     - 0011 = pseudo-header ou "special" header
- *     - 0100 = end-of-headers
- *     - 0101 = data
- *     - 0110 = trailer
- *     - 0111 = end-of-trailers
- *     - 1000 = end-of-message
- *       ...
- *     - 1111 = unused
- *
- */
-
-/* HTX start-line flags */
-#define HTX_SL_F_NONE           0x00000000
-#define HTX_SL_F_IS_RESP        0x00000001 /* It is the response start-line (unset means the request one) */
-#define HTX_SL_F_XFER_LEN       0x00000002 /* The message xfer size can be dertermined */
-#define HTX_SL_F_XFER_ENC       0x00000004 /* The transfer-encoding header was found in message */
-#define HTX_SL_F_CLEN           0x00000008 /* The content-length header was found in message */
-#define HTX_SL_F_CHNK           0x00000010 /* The message payload is chunked */
-#define HTX_SL_F_VER_11         0x00000020 /* The message indicates version 1.1 or above */
-#define HTX_SL_F_BODYLESS       0x00000040 /* The message has no body (content-length = 0) */
-#define HTX_SL_F_HAS_SCHM       0x00000080 /* The scheme is explicitly specified */
-#define HTX_SL_F_SCHM_HTTP      0x00000100 /* The scheme HTTP should be used */
-#define HTX_SL_F_SCHM_HTTPS     0x00000200 /* The scheme HTTPS should be used */
-#define HTX_SL_F_HAS_AUTHORITY  0x00000400 /* The request authority is explicitly specified */
-#define HTX_SL_F_NORMALIZED_URI 0x00000800 /* The received URI is normalized (an implicit absolute-uri form) */
-
-
-/* HTX flags */
-#define HTX_FL_NONE              0x00000000
-#define HTX_FL_PARSING_ERROR     0x00000001 /* Set when a parsing error occurred */
-#define HTX_FL_PROCESSING_ERROR  0x00000002 /* Set when a processing error occurred */
-#define HTX_FL_UPGRADE           0x00000004 /* Set when an upgrade is in progress */
-#define HTX_FL_PROXY_RESP        0x00000008 /* Set when the response was generated by HAProxy */
-
-
-/* HTX block's type (max 15). */
-enum htx_blk_type {
-       HTX_BLK_REQ_SL =  0, /* Request start-line */
-       HTX_BLK_RES_SL =  1, /* Response start-line */
-       HTX_BLK_HDR    =  2, /* header name/value block */
-       HTX_BLK_EOH    =  3, /* end-of-headers block */
-       HTX_BLK_DATA   =  4, /* data block */
-       HTX_BLK_TLR    =  5, /* trailer name/value block */
-       HTX_BLK_EOT    =  6, /* end-of-trailers block */
-       HTX_BLK_EOM    =  7, /* end-of-message block */
-       /* 8 .. 14 unused */
-       HTX_BLK_UNUSED = 15, /* unused/removed block */
-};
-
-/* One HTX block descriptor */
-struct htx_blk {
-       uint32_t addr; /* relative storage address of the block's payload */
-       uint32_t info; /* information about the block (type, length) */
-};
-
-/* Composite return value used by some HTX functions */
-struct htx_ret {
-       int32_t ret;         /* A numerical value */
-       struct htx_blk *blk; /* An HTX block */
-};
-
-/* HTX start-line */
-struct htx_sl {
-       unsigned int flags; /* HTX_SL_F_* */
-       union {
-               struct {
-                       enum http_meth_t meth;   /* method */
-               } req;
-               struct {
-                       uint16_t         status; /* status code */
-               } res;
-       } info;
-
-       /* XXX 2 bytes unused */
-
-       int32_t hdrs_bytes;  /* Bytes held by all headers, as seen by the mux
-                             * during parsing, from this start-line to the
-                             * corresponding EOH. -1 if unknown */
-
-       unsigned int len[3]; /* length of different parts of the start-line */
-       char         l[0];
-};
-
-/* Internal representation of an HTTP message */
-struct htx {
-       uint32_t size;   /* the array size, in bytes, used to store the HTTP message itself */
-       uint32_t data;   /* the data size, in bytes. To known to total size used by all allocated
-                         * blocks (blocks and their contents), you need to add size used by blocks,
-                         * i.e. [ used * sizeof(struct htx_blk *) ] */
-
-       int32_t tail;   /* newest inserted block. -1 if the HTX message is empty */
-       int32_t head;   /* oldest inserted block. -1 if the HTX message is empty */
-       int32_t first;  /* position of the first block to (re)start the analyse. -1 if unset. */
-
-       uint32_t tail_addr; /* start address of the free space in front of the the blocks table */
-       uint32_t head_addr; /* start address of the free space at the beginning */
-       uint32_t end_addr;  /* end address of the free space at the beginning */
-
-       uint64_t extra;  /* known bytes amount remaining to receive */
-       uint32_t flags;  /* HTX_FL_* */
-
-       /* XXX 4 bytes unused */
-
-       /* Blocks representing the HTTP message itself */
-       char blocks[0] __attribute__((aligned(8)));
-};
-
+#include <haproxy/htx-t.h>
 
 extern struct htx htx_empty;
 
@@ -866,7 +671,7 @@ static inline void htx_dump(struct buffer *chunk, const struct htx *htx, int ful
        }
 }
 
-#endif /* _COMMON_HTX_H */
+#endif /* _HAPROXY_HTX_H */
 
 /*
  * Local variables:
index 8e19562d03a2c4126fd17b9bbf5a6877632b612a..d391a4ae03009bde3bdbfa8e7a99288aebeba1b6 100644 (file)
@@ -30,7 +30,7 @@
 #include <haproxy/api.h>
 #include <haproxy/chunk.h>
 #include <haproxy/dynbuf.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
 
index aad0d616bb13b357549b0a8c0f89557a387d5e4a..424d018a4a12ec8957c6fade554c248eb5067e3b 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _PROTO_HTTP_FCGI_H
 #define _PROTO_HTTP_FCGI_H
 
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 #include <types/fcgi-app.h>
 #include <types/proxy.h>
index cdfa87e1ecd52b90c17369fd3f7e10ff70f24af2..00a38121b6305076a6e8fa40f9f1f994f65a72c2 100644 (file)
@@ -23,7 +23,7 @@
 #define _PROTO_PROTO_HTTP_H
 
 #include <haproxy/api.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <types/channel.h>
 #include <types/http_ana.h>
 #include <types/stream.h>
index 22c793fb07be7e23d739a91a0d7e4eb8751cb3ef..8df991c208b6539b851f7734107a0f32d0a06f0c 100644 (file)
@@ -23,7 +23,7 @@
 #define _PROTO_HTTP_FETCH_H
 
 #include <haproxy/api.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <types/arg.h>
 #include <types/channel.h>
 #include <types/checks.h>
index 2f6b10b52c129ada34eea69b4bce591bd94aae71..b3af77e3c3b792d10cd145871a1583fc4ae4cdc5 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <haproxy/buf-t.h>
 #include <haproxy/http-t.h>
-#include <common/htx.h>
+#include <haproxy/htx-t.h>
 #include <import/ist.h>
 
 /* Context used to find/remove an HTTP header. */
index 6d8596735059e8d96b14e7242f85782533c1e59e..e5ceda9eb5e35fe819da277fb032a784b359aae9 100644 (file)
@@ -22,7 +22,7 @@
 #include <haproxy/api.h>
 #include <haproxy/hash.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
 #include <haproxy/namespace.h>
index 51e0d866deece260d4d68d0403304581d433629a..754cb44274dba8f6e875bcd1456328b032e7d425 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <common/cfgparse.h>
 #include <haproxy/hash.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 
 #define CACHE_FLT_F_IMPLICIT_DECL  0x00000001 /* The cache filtre was implicitly declared (ie without
index 6f409e3aa0df7c09e797d83a4ae9596fa2f3ae56..2b7aa8c7928d28d7650965a2dfca855d597fa4c9 100644 (file)
@@ -41,7 +41,7 @@
 #include <haproxy/thread.h>
 #include <haproxy/http.h>
 #include <haproxy/h1.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 #include <types/global.h>
 #include <types/dns.h>
index 50d1c8a4cf47b5e1371dff2e6e0523c7ad5b76c4..5cfac403976da3e6adfd80e51ad20482cf0550bd 100644 (file)
@@ -14,7 +14,7 @@
 #include <haproxy/buf-t.h>
 #include <common/cfgparse.h>
 #include <haproxy/errors.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/namespace.h>
 #include <common/standard.h>
 
index 5f0853a6d26c8f40e3dd20040f2c1b2f090e7a0b..ac4a3bf2e52d964a6e951fd6540e63a358045b87 100644 (file)
@@ -14,7 +14,7 @@
 #include <haproxy/dynbuf.h>
 #include <haproxy/http.h>
 #include <common/cfgparse.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/list.h>
 #include <common/standard.h>
 
index 69862aec7cc0d3c360362b8d127b9348da5266c4..94aef8cb39eb8e0dd3952dc680fe3eb948398e7c 100644 (file)
@@ -13,7 +13,7 @@
 #include <ctype.h>
 
 #include <haproxy/api.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <common/standard.h>
 #include <haproxy/time.h>
 
index 69472a61299ba4132a0449d2fb1de440750280da..1f0dddbd818972d0fd1090fd16ec1b38252944da 100644 (file)
@@ -14,7 +14,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 #include <proto/h1_htx.h>
 
index c59c3f2a50b5ed8f6a79ab676071bafc9b2390bd..14eeabc2e71c497920ac4d64cc5539c26bb58468 100644 (file)
--- a/src/h2.c
+++ b/src/h2.c
@@ -30,6 +30,7 @@
 #include <haproxy/http.h>
 #include <common/h2.h>
 #include <haproxy/http-hdr-t.h>
+#include <haproxy/htx.h>
 #include <import/ist.h>
 #include <types/global.h>
 
index d89bcf54b36895c4731e3d79428e27ac611bac3c..3065e3837113865014130883e8c27a8041c627a7 100644 (file)
@@ -13,7 +13,7 @@
 #include <haproxy/api.h>
 #include <haproxy/base64.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/regex.h>
 #include <common/uri_auth.h>
index 3f30797f55f5a28f0ae5a8ce63bf53b573910f54..221ac94170ad03e0892100abfd04f19cb1c5bda2 100644 (file)
@@ -21,7 +21,7 @@
 #include <haproxy/chunk.h>
 #include <haproxy/h1.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <common/standard.h>
 #include <haproxy/version.h>
index d410f03a9d294da41939d10dfa8d312123d8226c..f345b4b14ebe869cd9408007ee0dd28286434141 100644 (file)
@@ -21,7 +21,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 #include <proto/arg.h>
 #include <proto/http_htx.h>
index d1679a280c90238a56018d6cf6abadffe4cee780..4d9ef6845beb938a32758a032f4fe2e9c8debdc7 100644 (file)
--- a/src/htx.c
+++ b/src/htx.c
@@ -11,7 +11,7 @@
  */
 
 #include <haproxy/chunk.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 struct htx htx_empty = { .size = 0, .data = 0, .head  = -1, .tail = -1, .first = -1 };
 
index f58609ec6359060539a58b686543e494ad03eaa6..aa6c018dfda39f9a5a6f99364e8e221702e46123 100644 (file)
@@ -14,7 +14,7 @@
 #include <common/cfgparse.h>
 #include <common/fcgi.h>
 #include <haproxy/h1.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <import/ist.h>
 #include <haproxy/list.h>
 #include <haproxy/net_helper.h>
index 09bf87142a589d031e2bd96bd519e5e6aebb960c..4afaa29c53b25c1870a6f1eb6180bb7464fd834c 100644 (file)
@@ -14,7 +14,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
 #include <common/h2.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 
 #include <import/ebistree.h>
 
index d672f997b2a8cf000672a385a3540542ca03664f..8c72f81657a3493ac5be62dda3ce3e78e70aa450 100644 (file)
@@ -18,7 +18,7 @@
 #include <common/hpack-dec.h>
 #include <common/hpack-enc.h>
 #include <common/hpack-tbl.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 #include <proto/connection.h>
 #include <proto/http_htx.h>
index 1543f46d89807e1892258afb1fb0a803821990e8..43b0da4aa72125d24e83608cfb30cb6d038a4ed8 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <haproxy/api.h>
+#include <haproxy/buf.h>
 #include <proto/connection.h>
 #include <proto/stream.h>
 #include <proto/task.h>
index ca9c9d715bb5a03d191dbd8a62cecce2964ac7da..7d7cb36564cf75aba7d7d69e464bf1c4a5cdacbb 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <haproxy/api.h>
 #include <haproxy/net_helper.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <proto/acl.h>
 #include <proto/arg.h>
 #include <proto/channel.h>
index 380dd6fb06c04040e14d4dd2fc418766fb112de2..e1e4d9cca324c4112f0986183d3601618c7d8143 100644 (file)
@@ -19,6 +19,7 @@
 #include <haproxy/api.h>
 #include <types/global.h>
 
+#include <haproxy/buf.h>
 #include <haproxy/chunk.h>
 #include <haproxy/hash.h>
 #include <haproxy/http.h>
index 4820d3b8bb64db5adbb1c33e3229691bc2af6c76..d7d581d4e3500b3a91a63b71449dbcce394fe804 100644 (file)
@@ -28,7 +28,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/debug.h>
 #include <haproxy/http.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
 #include <common/standard.h>
index 4af498602759cfbf0559be76d3e245081f23d636..27030eaef69961880d1608b84eb544205e898335 100644 (file)
@@ -19,7 +19,7 @@
 #include <haproxy/dynbuf.h>
 #include <haproxy/istbuf.h>
 #include <haproxy/thread.h>
-#include <common/htx.h>
+#include <haproxy/htx.h>
 #include <haproxy/pool.h>
 
 #include <types/applet.h>