cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
routes_internal.h File Reference

Read-only walk of an app's route table for in-tree consumers (the runtime OpenAPI generator in openapi.c). More...

Include dependency graph for routes_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* cwist_route_visit_fn) (void *ctx, cwist_http_method_t method, const char *path)
 

Functions

void cwist_app_foreach_route (cwist_app *app, cwist_route_visit_fn visit, void *ctx)
 

Detailed Description

Read-only walk of an app's route table for in-tree consumers (the runtime OpenAPI generator in openapi.c).

Definition in file routes_internal.h.

Typedef Documentation

◆ cwist_route_visit_fn

typedef void(* cwist_route_visit_fn) (void *ctx, cwist_http_method_t method, const char *path)

Called once per HTTP route; WebSocket routes are skipped.

Definition at line 13 of file routes_internal.h.

Function Documentation

◆ cwist_app_foreach_route()

void cwist_app_foreach_route ( cwist_app *  app,
cwist_route_visit_fn  visit,
void *  ctx 
)

Visit every HTTP route of app: exact routes first, then parameterized ones.