[MAJOR] http: create the analyser which waits for a response
The code part which waits for an HTTP response has been extracted
from the old function. We now have two analysers and the second one
may re-enable the first one when an 1xx response is encountered.
This has been tested and works.
The calls to stream_int_return() that were remaining in the wait
analyser have been converted to stream_int_retnclose().
diff --git a/include/types/buffers.h b/include/types/buffers.h
index 8c8ee9b..e8ac641 100644
--- a/include/types/buffers.h
+++ b/include/types/buffers.h
@@ -140,10 +140,16 @@
#define AN_REQ_HTTP_INNER 0x00000020 /* inner processing of HTTP request */
#define AN_REQ_HTTP_TARPIT 0x00000040 /* wait for end of HTTP tarpit */
#define AN_REQ_HTTP_BODY 0x00000080 /* inspect HTTP request body */
-
-#define AN_RTR_HTTP_HDR 0x00000200 /* inspect HTTP response headers */
+/* unused: 0x100, 0x200 */
#define AN_REQ_PRST_RDP_COOKIE 0x00000400 /* persistence on rdp cookie */
+/* response analysers */
+#define AN_RES_INSPECT 0x00010000 /* content inspection */
+#define AN_RES_WAIT_HTTP 0x00020000 /* wait for HTTP response */
+#define AN_RES_HTTP_PROCESS_BE 0x00040000 /* process backend's HTTP part */
+#define AN_RES_HTTP_PROCESS_FE 0x00040000 /* process frontend's HTTP part (same for now) */
+
+
/* Magic value to forward infinite size (TCP, ...), used with ->to_forward */
#define BUF_INFINITE_FORWARD (~0UL)