class

Amber::Pipe::Static

Inherits HTTP::StaticFileHandler < HTTP::Handler < Reference < Object

Serves static files from the given public directory. By default, Amber turns off serving a directory listing page.

Constructors

new(public_dir : String, fallthrough = false, directory_listing = false)

Sets the default behavior for static file serving to NOT list the directory contents.

Source