A simple handler that lists directories and serves files under a given public directory.
Creates a handler that will serve files in the given public_dir, after expanding it (using File#expand_path).
HTTP::Handler
Reference
Reference
Object
Object
Creates a handler that will serve files in the given public_dir, after expanding it (using File#expand_path).
If fallthrough is false, this handler does not call next handler when request method is neither GET or HEAD, then serves 405 Method Not Allowed. Otherwise, it calls next handler.
If directory_listing is false, directory listing is disabled. This means that paths matching directories are ignored and next handler is called.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/HTTP/StaticFileHandler.html