salvia-1.0.0: Modular web application framework.

Network.Salvia.Impl.Server

Synopsis

Documentation

start :: Config -> Handler p () -> p -> IO ()Source

todo: Start a webserver with a specific server configuration and default handler. The server will go into an infinite loop and will repeatedly accept client connections on the address and port specified in the configuration. For every connection the specified handler will be executed with the client address and socket stored in the handler context.