class Zipstream::StaticFileHandler
- Zipstream::StaticFileHandler
- Reference
- Object
Overview
A simple handler that lists directories and serves files under a given public directory.
Included Modules
- HTTP::Handler
Defined in:
zipstream/http/server/handlers/static_file_handler.crConstructors
-
.new(public_dir : String, fallthrough = true, directory_listing = true, match_hidden : Bool = false, follow_symlinks : Bool = false)
Creates a handler that will serve files in the given public_dir, after expanding it (using
File#expand_path
).