directoryHandler property

void directoryHandler= (void callback(Directory dir, HttpRequest request))

Set the callback to override the default directory listing. The callback will be called with the Directory to be listed and the HttpRequest.

Implementation

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