MetaMantleServerEngine constructor
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
Implementation
MetaMantleServerEngine({
this.routes = const [],
this.config = const MetaMantleConfig(),
MetaMantleCacheStore? cacheStore,
RedirectManager? redirectManager,
SingleFlightCoordinator? singleFlight,
this.tenantHostValidator,
this.artifactStore,
this.artifactStoreForTenant,
this.artifactMaxAge,
this.artifactStaleWhileRevalidate = const Duration(seconds: 60),
this.onStaleArtifact,
}) : cache = cacheStore ?? MemoryCacheStore(),
redirects = redirectManager ?? RedirectManager(),
singleFlight = singleFlight ?? SingleFlightCoordinator();