Libevhtp
0.3.7
|
structure containing a single callback and configuration More...
#include <evhtp.h>
Public Member Functions | |
TAILQ_ENTRY (evhtp_callback_s) next | |
Data Fields | |
evhtp_callback_type | type |
evhtp_callback_cb | cb |
unsigned int | hash |
void * | cbarg |
evhtp_hooks_t * | hooks |
union { | |
char * path | |
char * glob | |
regex_t * regex | |
} | val |
structure containing a single callback and configuration
The definition structure which is used within the evhtp_callbacks_t structure. This holds information about what should execute for either a single or regex path.
For example, if you registered a callback to be executed on a request for "/herp/derp", your defined callback will be executed.
Optionally you can set callback-specific hooks just like per-connection hooks using the same rules.
TAILQ_ENTRY | ( | evhtp_callback_s | ) |
evhtp_hooks_t* hooks |
evhtp_callback_type type |
union { ... } val |