mighttpd2-3.1.0: High performance web server on WAI/warp

Safe HaskellSafe-Inferred

Program.Mighty.State

Contents

Synopsis

Types

data Status Source

Server status

Constructors

Serving 
Retiring 

Instances

data Stater Source

Reference to a server state.

Creating Stater

initStater :: IO StaterSource

Creating a new Stater.

Accessing Stater

Modifying Stater

goRetiring :: Stater -> IO ()Source

Setting status to Retiring.

Misc

ifWarpThreadsAreActive :: Stater -> IO () -> IO ()Source

If Warp threads are active, first terminate them and run new IO.