[MINOR] acl: specify the direction during fetches

Some fetches such as 'line' or 'hdr' need to know the direction of
the test (request or response). A new 'dir' parameter is now
propagated from the caller to achieve this.
diff --git a/src/proto_http.c b/src/proto_http.c
index 839bc94..5f991e5 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -1681,7 +1681,7 @@
 
 			/* first check whether we have some ACLs set to block this request */
 			list_for_each_entry(cond, &cur_proxy->block_cond, list) {
-				int ret = acl_exec_cond(cond, cur_proxy, t, txn);
+				int ret = acl_exec_cond(cond, cur_proxy, t, txn, ACL_DIR_REQ);
 				if (cond->pol == ACL_COND_UNLESS)
 					ret = !ret;
 
@@ -5164,7 +5164,8 @@
 	return 1;
 }
 
-static int acl_fetch_meth(struct proxy *px, struct session *l4, void *l7, void *arg, struct acl_test *test)
+static int
+acl_fetch_meth(struct proxy *px, struct session *l4, void *l7, int dir, void *arg, struct acl_test *test)
 {
 	int meth;
 	struct http_txn *txn = l7;
@@ -5207,7 +5208,8 @@
 	return 1;
 }
 
-static int acl_fetch_rqver(struct proxy *px, struct session *l4, void *l7, void *arg, struct acl_test *test)
+static int
+acl_fetch_rqver(struct proxy *px, struct session *l4, void *l7, int dir, void *arg, struct acl_test *test)
 {
 	struct http_txn *txn = l7;
 	char *ptr;
@@ -5227,7 +5229,8 @@
 	return 1;
 }
 
-static int acl_fetch_stver(struct proxy *px, struct session *l4, void *l7, void *arg, struct acl_test *test)
+static int
+acl_fetch_stver(struct proxy *px, struct session *l4, void *l7, int dir, void *arg, struct acl_test *test)
 {
 	struct http_txn *txn = l7;
 	char *ptr;
@@ -5248,7 +5251,8 @@
 }
 
 /* 3. Check on Status Code. We manipulate integers here. */
-static int acl_fetch_stcode(struct proxy *px, struct session *l4, void *l7, void *arg, struct acl_test *test)
+static int
+acl_fetch_stcode(struct proxy *px, struct session *l4, void *l7, int dir, void *arg, struct acl_test *test)
 {
 	struct http_txn *txn = l7;
 	char *ptr;
@@ -5263,7 +5267,8 @@
 }
 
 /* 4. Check on URL/URI. A pointer to the URI is stored. */
-static int acl_fetch_url(struct proxy *px, struct session *l4, void *l7, void *arg, struct acl_test *test)
+static int
+acl_fetch_url(struct proxy *px, struct session *l4, void *l7, int dir, void *arg, struct acl_test *test)
 {
 	struct http_txn *txn = l7;