directoryHandler property

set directoryHandler (void callback(Directory, HttpRequest))

Overrides the default directory listing.

When invoked the callback should response through the HttpRequest with a directory listing.

Implementation

set directoryHandler(void Function(Directory, HttpRequest) callback) {
  _dirCallback = callback;
}