ContentsIndex
Framework.Http.SessionTypes
Synopsis
type SessionID = String
type SessionMap = Map String String
data Session
= NewSession SessionID
| ExistingSession SessionID SessionMap
class SessionBackend b where
sinit :: String -> IO b
sfetch :: b -> SessionID -> IO SessionMap
spush :: b -> SessionID -> SessionMap -> IO ()
sfree :: b -> IO ()
data SessionsConnection = forall b . SessionBackend b => SConnection b
Documentation
type SessionID = String
type SessionMap = Map String String
data Session
Session data
Constructors
NewSession SessionID
ExistingSession SessionID SessionMap
show/hide Instances
Show Session
class SessionBackend b where
Methods
sinit :: String -> IO b
sfetch :: b -> SessionID -> IO SessionMap
spush :: b -> SessionID -> SessionMap -> IO ()
sfree :: b -> IO ()
show/hide Instances
SessionBackend FilesBackend
data SessionsConnection
Container type for any sessions backend connection
Constructors
forall b . SessionBackend b => SConnection b
show/hide Instances
Produced by Haddock version 2.4.2