CachingVirtualDirectory constructor
CachingVirtualDirectory(
- Angel app,
- FileSystem fileSystem, {
- CacheAccessLevel accessLevel = CacheAccessLevel.public,
- Directory? source,
- bool debug = false,
- Iterable<
String> indexFileNames = const ['index.html'], - int maxAge = 0,
- bool noCache = false,
- bool onlyInProduction = false,
- bool useEtags = true,
- bool allowDirectoryListing = false,
- bool useBuffer = false,
- String publicPath = '/',
- dynamic callback(
- File file,
- RequestContext req,
- ResponseContext res
Implementation
CachingVirtualDirectory(Angel app, FileSystem fileSystem,
{this.accessLevel = CacheAccessLevel.public,
Directory? source,
bool debug = false,
Iterable<String> indexFileNames = const ['index.html'],
this.maxAge = 0,
this.noCache = false,
this.onlyInProduction = false,
this.useEtags = true,
bool allowDirectoryListing = false,
bool useBuffer = false,
String publicPath = '/',
Function(File file, RequestContext req, ResponseContext res)? callback})
: super(app, fileSystem,
source: source,
indexFileNames: indexFileNames,
publicPath: publicPath,
callback: callback,
allowDirectoryListing: allowDirectoryListing,
useBuffer: useBuffer);