summaryrefslogtreecommitdiffhomepage
path: root/src/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index d914b32..fbb4748 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -26,6 +26,14 @@
#include "vector.h"
/*
+ * Stores a HTTP header created using the AddHeader directive.
+ */
+typedef struct {
+ char *name;
+ char *value;
+} http_header_t;
+
+/*
* Hold all the configuration time information.
*/
struct config_s {
@@ -97,6 +105,11 @@ struct config_s {
* anonymous feature is turned on.
*/
hashmap_t anonymous_map;
+
+ /*
+ * Extra headers to be added to outgoing HTTP requests.
+ */
+ vector_t add_headers;
};
extern int reload_config_file (const char *config_fname, struct config_s *conf,