Module http

Module http 

Source
Expand description

HTTP: the first paint, the assets, the probes, and the websocket upgrade.

“First paint is free SSR: evaluate pure view against the current accumulator, ship HTML.” The document below is therefore not a shell that fetches data — it is the data, rendered, and the socket that opens afterwards resumes from the seq the render reflects. There is no loading state anywhere in a Beck program because there is nothing to load.

Constants§

CALLBACK_PATH
LOGIN_PATH
Where the login flow lives. Fixed paths rather than configurable ones: they are registered with an identity provider as a redirect URI, and a path an operator can move is a path that stops matching what was registered.
LOGOUT_PATH

Functions§

bind
The port the local listener actually bound, for tests that ask for port 0.
kernel_path
Where the Mode B kernel is looked for.
reserved_routes
A path this process answers itself, so a program’s routes cannot be shadowed by one.
serve
serve_with_dashboard
Serve, optionally with the dashboard mounted under /_beck.