libonion
|
#include <onion/types.h>
Functions | |
onion_handler * | onion_handler_static (const char *text, int code) |
Creates an static handler. Returns some content from memory, like an error html. |
onion_handler* onion_handler_static | ( | const char * | text, |
int | code | ||
) |
Creates an static handler. Returns some content from memory, like an error html.
Creates an static handler. Returns some content from memory, like an error html.
Path is a regex for the url, as arrived here.
References onion_handler_static_data_t::code, onion_handler_static_data_t::data, onion_handler_t::onion_handler_new(), onion_handler_static_delete(), onion_handler_static_handler(), onion_low_malloc(), and onion_low_strdup().