Module

Hyper.Node.FileServer

Package
purescript-hyper
Repository
owickstrom/hyper

#fileServer Source

fileServer :: forall b c res req m. Monad m => MonadAff m => Request req m => ResponseWritable b m Buffer => Response res m b => FilePath -> Middleware m (Conn req (res StatusLineOpen) c) (Conn req (res ResponseEnded) c) Unit -> Middleware m (Conn req (res StatusLineOpen) c) (Conn req (res ResponseEnded) c) Unit

Extremly basic implementation of static file serving. Needs more love.