ContentsIndex
Framework.Wrapper
Contents
Main wrapper
Synopsis
mkActionConfig :: StaticConfig -> HttpRequest -> IO (ActionConfig, Bool)
acFree :: ActionConfig -> IO ()
withConfig :: StaticConfig -> HttpRequest -> (ActionConfig -> IO HttpResponse) -> IO HttpResponse
Documentation
mkActionConfig :: StaticConfig -> HttpRequest -> IO (ActionConfig, Bool)
Prepare ActionConfig for controller. This connects to DB etc. Returns (ActionConfig, WhetherToAddSessionCookie)
acFree :: ActionConfig -> IO ()
Free ActionConfig: disconnect from DB etc.
Main wrapper
withConfig
:: StaticConfigStatic (global) server configuration
-> HttpRequestHTTP request
-> ActionConfig -> IO HttpResponseWorker function
-> IO HttpResponse
Main API wrapper. Connects to DB etc, then calls given function, then disconnects.
Produced by Haddock version 2.4.2