Tor
0.4.7.0-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 340 of file dircache.c.