Data Fields
url_table_ent_t Struct Reference

Data Fields

const char * string
int is_prefix
int(* handler )(dir_connection_t *conn, const get_handler_args_t *args)

Detailed Description

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.

The documentation for this struct was generated from the following file: