redHandlers-0.1: Monadic HTTP request handlers combinators to build a standalone web apps.




getSessionedStateWithCookie :: HasHeaders request => String -> request -> IO (Maybe SessionState)Source

search the cookie with the given name in the headers (request headers) and get the session id. Then search the Session Map for the value

newSessionedStateWithCookie :: HasHeaders response => String -> SessionState -> IO (response -> response)Source

set the value in a new session. Then set responses headers with the cookie.

updateSessionedStateWithCookie :: HasHeaders request => String -> request -> SessionState -> IO ()Source

deleteSessionedStateWithCookie :: (HasHeaders request, HasHeaders response) => String -> request -> IO (response -> response)Source