1 Struct N_ROUTE
gullradriel edited this page 2026-10-25 10:46:33 +01:00

N_ROUTE

Module: HTTP ROUTER: route tables, typed placeholders, specificity

one route of a table

#include "n_http_router.h"

Public Attributes

Name
const char * pattern
the pattern, see the file documentation
unsigned methods
accepted methods, an OR of N_ROUTE_GET / N_ROUTE_POST / N_ROUTE_HEAD
n_route_handler handler
what the caller runs on a match
const void * data
caller data for this route (a policy: auth, CSRF, limits...)

Public Attributes Documentation

variable pattern

const char * pattern;

the pattern, see the file documentation

variable methods

unsigned methods;

accepted methods, an OR of N_ROUTE_GET / N_ROUTE_POST / N_ROUTE_HEAD

variable handler

n_route_handler handler;

what the caller runs on a match

variable data

const void * data;

caller data for this route (a policy: auth, CSRF, limits...)