class Amber::Pipe::Static
- Amber::Pipe::Static
- HTTP::StaticFileHandler
- Reference
- Object
Overview
Serves static files from the given public directory. By default, Amber turns off serving a directory listing page.
Defined in:
amber/pipes/static.crConstructors
-
.new(public_dir : String, fallthrough = false, directory_listing = false)
Sets the default behavior for static file serving to NOT list the directory contents.
Constructor Detail
Sets the default behavior for static file serving to NOT list the directory contents.