4#ifndef __CWIST_MIDDLEWARE_H__
5#define __CWIST_MIDDLEWARE_H__
Top-level application header.
cwist_log_format_t
Access log middleware output formats.
cwist_middleware_func cwist_mw_request_id(const char *header_name)
Request ID middleware factory.
cwist_middleware_func cwist_mw_rate_limit_ip(int requests_per_minute)
Fixed-window rate limiter middleware (per-IP).
cwist_middleware_func cwist_mw_access_log(cwist_log_format_t format)
Access log middleware factory.
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.
Deterministic request firewall and output sanitization.