std1.0.0-beta-7 SafeC docs

std :: http::router

Function std::router_set_state

#include <std/http/router.h> source

generic<T> void router_set_state(&Router r, ?&T state)

Stores/reads the router's one application pointer (shared by every request; synchronize it yourself if handlers mutate what it points at).