MINOR: http: prepare to support more http-request actions
We'll need to support per-action arguments, so we need to have an
"arg" union in http_req_rule.
diff --git a/include/types/proto_http.h b/include/types/proto_http.h
index ef9e125..c6efc55 100644
--- a/include/types/proto_http.h
+++ b/include/types/proto_http.h
@@ -341,11 +341,13 @@
struct http_req_rule {
struct list list;
- struct acl_cond *cond; /* acl condition to meet */
- unsigned int action;
- struct {
- char *realm;
- } http_auth;
+ struct acl_cond *cond; /* acl condition to meet */
+ unsigned int action; /* HTTP_REQ_* */
+ union {
+ struct {
+ char *realm;
+ } auth; /* arg used by "auth" */
+ } arg; /* arguments used by some actions */
};
/* This is an HTTP transaction. It contains both a request message and a