12 #ifndef TOR_DIRCACHE_H
13 #define TOR_DIRCACHE_H
17 #ifdef DIRCACHE_PRIVATE
21 size_t req_body_len));
27 STATIC int handle_post_hs_descriptor(
const char *url,
const char *body);
37 STATIC int parse_hs_version_from_post(
const char *
url,
const char *prefix,
38 const char **end_pos);
STATIC int directory_handle_command_post(dir_connection_t *conn, const char *headers, const char *body, size_t body_len)
STATIC int parse_http_url(const char *headers, char **url)
STATIC int handle_get_hs_descriptor_v3(dir_connection_t *conn, const get_handler_args_t *args)
STATIC unsigned parse_accept_encoding_header(const char *h)
STATIC int directory_handle_command_get(dir_connection_t *conn, const char *headers, const char *req_body, size_t req_body_len)
STATIC compression_level_t choose_compression_level(void)
int directory_handle_command(dir_connection_t *conn)
#define MOCK_DECL(rv, funcname, arglist)