[MEDIUM] http: add a new transaction flags indicating if we know the transfer length

It's not enough to know if the connection will be in CLOSE or TUNNEL mode,
we still need to know whether we want to read a full message to a known
length or read it till the end just as in TUNNEL mode. Some updates to the
RFC clarify slightly better the corner cases, in particular for the case
where a non-chunked encoding is used last.

Now we also take care of adding a proper "connection: close" to messages
whose size could not be determined.
diff --git a/include/types/proto_http.h b/include/types/proto_http.h
index c5d48d3..dcd6a3d 100644
--- a/include/types/proto_http.h
+++ b/include/types/proto_http.h
@@ -106,6 +106,12 @@
 #define TX_CON_HDR_PARS	0x00400000	/* "connection" header already parsed (req or res) */
 #define TX_REQ_CONN_CLO	0x00800000	/* request asks for "Connection: close" mode */
 
+/* if either of these flags is not set, we may be forced to complete an
+ * connection as a half-way tunnel. For instance, if no content-length
+ * appears in a 1.1 response, but the request is correctly sized.
+ */
+#define TX_REQ_XFER_LEN	0x01000000	/* request xfer size can be determined */
+#define TX_RES_XFER_LEN	0x02000000	/* response xfer size can be determined */
 
 /* 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