CachingVirtualDirectory constructor

CachingVirtualDirectory(
  1. Angel app,
  2. FileSystem fileSystem, {
  3. CacheAccessLevel accessLevel = CacheAccessLevel.public,
  4. Directory? source,
  5. bool debug = false,
  6. Iterable<String> indexFileNames = const ['index.html'],
  7. int maxAge = 0,
  8. bool noCache = false,
  9. bool onlyInProduction = false,
  10. bool useEtags = true,
  11. bool allowDirectoryListing = false,
  12. bool useBuffer = false,
  13. String publicPath = '/',
  14. dynamic callback(
    1. File file,
    2. RequestContext req,
    3. 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);