MEDIUM: http-rules: Support extra headers for HTTP return actions
It is now possible to append extra headers to the generated responses by HTTP
return actions, while it is not based on an errorfile. For return actions based
on errorfiles, these extra headers are ignored. To define an extra header, a
"hdr" argument must be used with a name and a value. The value is a log-format
string. For instance:
http-request status 200 hdr "x-src" "%[src]" hdr "x-dst" "%[dst]"
diff --git a/include/types/action.h b/include/types/action.h
index e65beaf..3298770 100644
--- a/include/types/action.h
+++ b/include/types/action.h
@@ -130,6 +130,7 @@
struct {
int status;
char *ctype;
+ struct list *hdrs;
union {
struct list fmt;
struct buffer obj;