Prerenderer class final

Fetches a built Odroe server and writes deployment-ready static HTML.

Constructors

Prerenderer({HttpClient? client})
Creates a prerenderer, optionally reusing client.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({required Uri origin, required Iterable<String> routes, required Directory output, int concurrency = defaultConcurrency, bool crawlLinks = false, int maxRoutes = defaultMaxRoutes, int maxResponseBytes = defaultMaxResponseBytes, Duration timeout = const Duration(seconds: 30)}) → Future<List<PrerenderedRoute>>
Renders routes from origin into output.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultConcurrency → const int
Default number of concurrent route requests.
defaultMaxResponseBytes → const int
Default maximum HTML response size for one route.
defaultMaxRoutes → const int
Default maximum number of explicit and discovered routes.