diff options
author | Mukund Sivaraman <muks@banu.com> | 2010-01-08 22:05:17 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2010-01-08 22:05:17 +0530 |
commit | 9c0c3d5ced559cb723247a54475fa59b403560b0 (patch) | |
tree | 716d3684a4662d463b3590bf090fb91a15f6a24a /src/conf.h | |
parent | b96a3a32500a6680a83f0928158b1f310cd6b0ec (diff) |
[BB#17] Add custom HTTP request headers to outgoing HTTP requests
Diffstat (limited to 'src/conf.h')
-rw-r--r-- | src/conf.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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, |