diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-03 14:04:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-04 08:37:41 -0400 |
commit | 57710c15875cfe9bdb1f1b2b6f6fa1346ab46c11 (patch) | |
tree | c19e09774fb562ded0532877824385f362ce3554 /src/or/directory.h | |
parent | 112286338b61ed747572cfa67ac38e2052e7c807 (diff) | |
download | tor-57710c15875cfe9bdb1f1b2b6f6fa1346ab46c11.tar.gz tor-57710c15875cfe9bdb1f1b2b6f6fa1346ab46c11.zip |
New function to add additional headers to a directory request
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index 8473d39e85..125333da37 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -72,7 +72,9 @@ void directory_request_set_rend_query(directory_request_t *req, void directory_request_set_routerstatus(directory_request_t *req, const routerstatus_t *rs); - +void directory_request_add_header(directory_request_t *req, + const char *key, + const char *val); MOCK_DECL(void, directory_initiate_request, (directory_request_t *request)); int parse_http_response(const char *headers, int *code, time_t *date, |