Network.HTTP.Lucu.StaticFile
Description
Handling static files on the filesystem.
Documentation
staticFile :: FilePath -> ResourceSource
is a staticFile fpathResource which serves the file at
fpath on the filesystem.
staticDir :: FilePath -> ResourceSource
is a staticDir dirResource which maps all files in dir
and its subdirectories on the filesystem to the resource tree. Thus
having Network.HTTP.Lucu.nonGreedy staticDir in a tree makes no
sense.
Note that staticDir currently doesn't have a directory-listing
capability. Requesting the content of a directory will end up being
replied with 403 Forbidden.