StaticHandlerConfig constructor
const
StaticHandlerConfig({})
Creates static handler configuration.
Implementation
const StaticHandlerConfig({
required this.path,
this.enableCaching = true,
this.maxAge = 86400, // 1 day
this.htmlMaxAge = 0, // No caching for HTML by default
this.enableCompression = true,
this.listDirectories = false,
this.defaultFile = 'index.html',
});