struct cwist_mux_route cwist_mux_route
bool cwist_mux_serve(cwist_mux_router *router, cwist_http_request *req, cwist_http_response *res)
Dispatch a request.
void(* cwist_http_handler_func)(cwist_http_request *req, cwist_http_response *res)
void cwist_mux_handle(cwist_mux_router *router, cwist_http_method_t method, const char *path, cwist_http_handler_func handler)
Register a route handler.
cwist_mux_router * cwist_mux_router_create(void)
Create a new router.
struct cwist_mux_router cwist_mux_router
void cwist_mux_router_destroy(cwist_mux_router *router)
Destroy a router.
void(* cwist_http_handler_func)(cwist_http_request *req, cwist_http_response *res)
HTTP Response Object. Supports standard string body or Zero-Copy pointer body.
struct cwist_mux_route * next
Used for global cleanup.
cwist_http_handler_func handler
cwist_http_method_t method