diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-20 11:59:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-05 14:34:09 -0400 |
commit | eda79c2f784af554283fa21c33cf842c61f61883 (patch) | |
tree | 7f524d7a65cc2cff95b208078ae2044dcb5862b6 /src/or/directory.h | |
parent | 257f50b22fbaf9c9cb5859e257437b24af46c7ab (diff) | |
download | tor-eda79c2f784af554283fa21c33cf842c61f61883.tar.gz tor-eda79c2f784af554283fa21c33cf842c61f61883.zip |
Export http-command parsing functions.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index d3f8a45a82..82bb975b23 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -85,6 +85,9 @@ MOCK_DECL(void, directory_initiate_request, (directory_request_t *request)); int parse_http_response(const char *headers, int *code, time_t *date, compress_method_t *compression, char **response); +int parse_http_command(const char *headers, + char **command_out, char **url_out); +char *http_get_header(const char *headers, const char *which); int connection_dir_is_encrypted(const dir_connection_t *conn); int connection_dir_reached_eof(dir_connection_t *conn); |