Reference

The contract for each type and module.

A reference page states what a thing is, who constructs it, what it guarantees, and what it rejects. Signatures come from the source. There are no tutorials here; for those, start with Hello world.

HTTP#

  • Routing — Route, app.add, HEAD, middleware, same_origin, route parameters, 404 and 405.

  • Request and context — Context, Request, query, body, forms, cookies, c.state, c.alive().

  • Responses — Writer, the w.* response methods, cookies, SignedCookie, streaming, compression.

HTML and the browser#

  • HTML — stario.markup trees, attributes, @baked components, SVG.

  • Datastar — data and at, SSE, read_signals.

  • Files and assets — Assets and Files.

Process#

  • Runtime — App, bootstrap, Server, shutdown.

  • Configuration — STARIO_* variables, ServerConfig, RequestPolicy.

  • Telemetry — spans, tracers, sinks.

  • Testing — TestClient.

  • JSON — the process-wide codec.

  • Relay — in-process publish and subscribe.

  • Glossary — short definitions, with links.