salvia-1.0.0: Modular web application framework.

Network.Salvia.Handler.Environment

Synopsis

Documentation

hDefaultEnvSource

Arguments

:: (MonadIO m, HandleM m, RawHttpM' m, HttpM' m, QueueM m, SendM m, FlushM Response m) 
=> m ()

Handler to run in the default environment.

-> m () 

This is the default handler environment. It takes care of request parsing (hRequestParser), response printing (hResponsePrinter), connection keep-alives (hKeepAlive), handling HEAD requests (hHead) and printing the `salvia-httpd` server banner (hBanner).

hEnvNoKeepAliveSource

Arguments

:: (MonadIO m, HandleM m, RawHttpM' m, HttpM' m, QueueM m, SendM m, FlushM Response m) 
=> m ()

Handler to run in this environment.

-> m () 

Like hDefaultEnv but only serves one request per connection.