/web/app/handlers
Composable HTTP request handlers: chain-handlers, route-map, route-fs, route-graph, handle-html, handle-css, handle-not-found.
Functions & symbols#
chain-handlers#
Composes an array of handlers, returning the first non-404 response or falling back to 404.
| Parameter | Type | Optional | Description |
|---|---|---|---|
handlers | Any | required | — |
Anyhandle-css#
Serves a `.css.tan` stylesheet with in-memory caching, dev mtime invalidation, and `?reload` / `?nocache` cache busting.
| Parameter | Type | Optional | Description |
|---|---|---|---|
path | Any | required | — |
rest | Any | optional | — |
Anyhandle-html#
Serves a `.html.tan` template or `(Func req ...)` handler with optional static HTML caching and dev mtime invalidation.
| Parameter | Type | Optional | Description |
|---|---|---|---|
path | Any | required | — |
rest | Any | optional | — |
Anyhandle-not-found#
Default `404 Not Found` handler.
| Parameter | Type | Optional | Description |
|---|---|---|---|
_req | Any | required | — |
Anyroute-fs#
Routes filesystem `.html.tan` and `.css.tan` resources under `base-path`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
base-path | Any | required | — |
rest | Any | optional | — |
Anyroute-graph#
Wraps an `App-Graph` into a compiled HTTP route handler via `route-map`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
graph | Any | required | — |
Anyroute-map#
Routes requests against a compiled route map trie.
| Parameter | Type | Optional | Description |
|---|---|---|---|
routes | Any | required | — |
Any