Reference
Complete API details for every part of the Stario ecosystem.
Core
- Handlers: Signature, request data, and responses.
- Context: The unified interface for every request.
- Writer: Sending one-shot and streaming data.
- Routing: Path matching, sub-routers, and middleware.
- Datastar: Reactive attributes and actions.
Building Content
- HTML Builder: Type-safe Python HTML generation.
- Static Assets: Fingerprinting, pre-compression, and caching.
Performance & Scaling
- Relay: In-process pub/sub for real-time syncing.
- Server: Running, workers, and graceful shutdown.
- Compression: Zstd, Brotli, and Gzip selection.
Diagnostics
- Telemetry: Trace-based logging and spans.
- Testing: Mock requests and response recorders.
- Exceptions:
HttpExceptionand internal errors. - Toys: Rapid prototyping utilities.
