relic library

Classes

AbstractWidget
The base class for all web widgets. Override this class to create a custom widget type, or use one of the default types which covers most common use cases.
Route
A Route defines a destination in Serverpod's web server. It will handle a call and generate an appropriate response by manipulating the HttpRequest object. You override Route, or more likely it's subclass WidgetRoute to create your own custom routes in your server.
RouteStaticDirectory
Route for serving a directory of static files.
Templates
Loads and caches templates.
WebServer
The Serverpod webserver.
Widget
A widget based on a HTML template. The name of the template should correspond to a template file in your server's web/templates directory. Set the custom values of the template by populating the values field. If values are set that aren't Strings, the toString method will be called on the value. The templates are loaded when the server starts. If you add new templates or modify existing templates, you will need to restart the server for them to take effect.
WidgetJson
A widget that renders JSON output. The output will be the result of passing the provided object to jsonEncode.
WidgetList
Combines a List of Widgets into a single widget.
WidgetRedirect
A widget that renders a HTTP redirect to the provided url.
WidgetRoute
A WidgetRoute is the most convienient way to create routes in your server. Override the build method and return an appropriate Widget.

Enums

RouteMethod
Defines HTTP call methods for routes.

Properties

templates Templates
Global access to all templates loaded when starting the webserver.
final