Expand description
The console: a web page served on the TLS listener at /console/. It
is a client of the HTTP API and nothing more. Its files are built
into the binary and need no key: they are the same for every caller,
hold no data and change nothing. Every request the page makes is an API
request that carries the key the user signed in with.
Constants§
- FILES
- Every file the console is made of. The router serves exactly these, and
a test holds this list, the
consoledirectory and the package’sincludelist to one another. - HEADERS
- The headers on every console answer: no inline code, nothing from another origin, no framing, no sniffing, no referrer, no caching.
Functions§
- path_of
- The path a console file is served at.
- router
- The console’s routes, merged into the API’s router: its files,
/consolesent on to/console/, and 404 for any other path under it, each answer with the headers.
Type Aliases§
- File
- One console file: its name under
/console/(empty for the page), its bytes as built into the binary, and its media type.