When a ResponseFile indicates a file which does not exist,
-- an exception is thrown. This will close the connection to the client
-- as well. You should handle file existance checks at the application
-- level.

--

module Network.Wai.Handler.Warp
-- | Run an Application on the given port. This calls
-- runSettings with defaultSettings.
run :: Port -> Application -> IO ()
-- | Run a Warp server with the given settings.
runSettings :: Settings -> Application -> IO ()
-- | Same as runSettings, but uses a user-supplied socket instead of
-- opening one. This allows the user to provide, for example, Unix named
-- socket, which can be used when reverse HTTP proxying into your
-- application.
--
-- Note that the settingsPort will still be passed to
-- Applications via the serverPort record.
runSettingsSocket :: Settings -> Socket -> Application -> IO ()
-- | Various Warp server settings. This is purposely kept as an abstract
-- data type so that new settings can be added without breaking backwards
-- compatibility. In order to create a Settings value, use
-- defaultSettings and record syntax to modify individual records.
-- For example:
--
--