Libevhtp 1.2.13
|
structure containing a single callback and configuration More...
Data Fields | ||
evhtp_callback_type | type | |
the type of callback (regex|path) | ||
evhtp_callback_cb | cb | |
the actual callback function | ||
void * | cbarg | |
user-defind arguments passed to the cb | ||
evhtp_hooks_t * | hooks | |
per-callback hooks | ||
size_t | len | |
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.
evhtp_callback_cb evhtp_callback_t::cb |
void* evhtp_callback_t::cbarg |
evhtp_callback_type evhtp_callback_t::type |
union { ... } evhtp_callback_t::val |