Tor 0.4.9.2-alpha-dev
|
Data Fields | |
const char * | string |
int | is_prefix |
int(* | handler )(dir_connection_t *conn, const get_handler_args_t *args) |
Entry for handling an HTTP GET request.
This entry matches a request if "string" is equal to the requested resource, or if "is_prefix" is true and "string" is a prefix of the requested resource.
The 'handler' function is called to handle the request. It receives an arguments structure, and must return 0 on success or -1 if we should close the connection.
Definition at line 342 of file dircache.c.
int(* handler) (dir_connection_t *conn, const get_handler_args_t *args) |
Definition at line 345 of file dircache.c.
int is_prefix |
Definition at line 344 of file dircache.c.
const char* string |
Definition at line 343 of file dircache.c.