6#ifndef __CWIST_CSRF_H__
7#define __CWIST_CSRF_H__
cwist_middleware_func cwist_mw_csrf(cwist_app *app)
CSRF middleware factory.
const char * cwist_csrf_token(cwist_http_request *req)
Get the CSRF token for the current request.
HTTP Protocol Definitions and Helpers.
Main Application Context.
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.