]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proto_http: Remove unecessary includes and comments
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Jul 2019 12:49:01 +0000 (14:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:24:12 +0000 (09:24 +0200)
include/proto/proto_http.h
include/types/proto_http.h
src/http_fetch.c

index e360a5a40932eaff941e2e267373522086cef102..ea8932c6adc1ef3c5a8df4678febaf428a0b571e 100644 (file)
 
 #include <common/config.h>
 #include <common/htx.h>
+#include <types/channel.h>
 #include <types/proto_http.h>
 #include <types/stream.h>
-#include <types/task.h>
-#include <proto/channel.h>
-#include <proto/stream.h>
 
 extern struct pool_head *pool_head_uniqueid;
 
index 295a98624a7b3bf067c425da7bfe78decb0ce0bb..5125879aa52e7241318d9bdb6fb8ee86440f50fc 100644 (file)
 #ifndef _TYPES_PROTO_HTTP_H
 #define _TYPES_PROTO_HTTP_H
 
-#include <common/buf.h>
 #include <common/config.h>
 #include <common/http.h>
-#include <common/mini-clist.h>
-#include <common/regex.h>
 
 #include <types/channel.h>
-#include <types/filters.h>
-//#include <types/sample.h>
 
 /* These are the flags that are found in txn->flags */
 
 /* used only for keep-alive purposes, to indicate we're on a second transaction */
 #define TX_NOT_FIRST   0x00040000      /* the transaction is not the first one */
 
-/* The HTTP parser is more complex than it looks like, because we have to
- * support multi-line headers and any number of spaces between the colon and
- * the value.
- *
- * All those examples must work :
-
- Hdr1:val1\r\n
- Hdr1: val1\r\n
- Hdr1:\t val1\r\n
- Hdr1: \r\n
-  val1\r\n
- Hdr1:\r\n
-  val1\n
- \tval2\r\n
-  val3\n
-
- *
- */
-
 /*
  * HTTP message status flags (msg->flags)
  */
index c2dd9b5f136c29f8cccb80a2ed5587250b66593d..cdf1c0e71a8e800de2f1eb3466dba5c630c52384 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <proto/arg.h>
 #include <proto/auth.h>
+#include <proto/channel.h>
 #include <proto/http_fetch.h>
 #include <proto/http_htx.h>
 #include <proto/log.h>