Core Application Structure and Lifecycle Management.
void(* cwist_middleware_func)(cwist_http_request *req, cwist_http_response *res, cwist_handler_func next)
Middleware type that receives req/res pair and the next stage in the chain.
cwist_middleware_func cwist_mw_waf_lite(void)
Construct the WAF-lite middleware.
char * cwist_sanitize_html(const char *input)
Escape HTML-special characters in a NUL-terminated string.
bool cwist_waf_is_safe(const char *input, size_t length)
Check whether a byte string is free of hostile signatures.