MetaMantleServerEngine class

Native request-time Server-Side Rendering (SSR) engine for MetaMantle.

Constructors

MetaMantleServerEngine({List<MetaRoute> routes = const [], MetaMantleConfig config = const MetaMantleConfig(), MetaMantleCacheStore? cacheStore, RedirectManager? redirectManager, SingleFlightCoordinator? singleFlight, TenantHostValidator? tenantHostValidator, FileHtmlArtifactStore? artifactStore, FileHtmlArtifactStore? artifactStoreForTenant(TenantContext tenant)?, Duration? artifactMaxAge, Duration artifactStaleWhileRevalidate = const Duration(seconds: 60), Future<void> onStaleArtifact(String path, RouteDependency dependency)?})

Properties

artifactMaxAge → Duration?
final
artifactStaleWhileRevalidate → Duration
final
artifactStore → FileHtmlArtifactStore?
Optional generated HTML store for a single-site deployment.
final
artifactStoreForTenant → FileHtmlArtifactStore? Function(TenantContext tenant)?
Resolves an isolated store from an already validated tenant context.
final
cache → MetaMantleCacheStore
final
config → MetaMantleConfig
final
hashCode → int
The hash code for this object.
no setterinherited
onStaleArtifact → Future<void> Function(String path, RouteDependency dependency)?
Optional ISR hook called for a stale generated artifact. Connect this to an idempotent durable queue; repeated requests may invoke it concurrently.
final
redirects → RedirectManager
final
routes → List<MetaRoute>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singleFlight → SingleFlightCoordinator
final
tenantHostValidator → TenantHostValidator?
final

Methods

handleRequest(ServerRequest request) → Future<ServerResponse>
Handles an incoming ServerRequest through the full SSR pipeline.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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