Module containing a small, simple http file server for testing and preview purposes.
- simpleServer :: PortNumber -> FilePath -> IO () -> IO ()
Documentation
:: PortNumber | Port to listen on. |
-> FilePath | Root directory to serve. |
-> IO () | Optional pre-respond action. |
-> IO () |
Start a simple http server on the given PortNumber
, serving the given
directory.