Module

Hyper.Session

Package
purescript-hyper
Repository
owickstrom/hyper

#SessionStore Source

class SessionStore store m session | store -> m, store -> session where

Members

#saveSession Source

saveSession :: forall session store b c res req m. Monad m => Response res m b => SessionStore store m session => session -> Middleware m (Conn req (res HeadersOpen) { cookies :: Either String (Object Values), sessions :: Sessions store | c }) (Conn req (res HeadersOpen) { cookies :: Either String (Object Values), sessions :: Sessions store | c }) Unit

#getSession Source

getSession :: forall session store c res req m. Monad m => SessionStore store m session => Middleware m (Conn req res { cookies :: Either String (Object Values), sessions :: Sessions store | c }) (Conn req res { cookies :: Either String (Object Values), sessions :: Sessions store | c }) (Maybe session)

#deleteSession Source

deleteSession :: forall session store b c res req m. Monad m => Response res m b => SessionStore store m session => Middleware m (Conn req (res HeadersOpen) { cookies :: Either String (Object Values), sessions :: Sessions store | c }) (Conn req (res HeadersOpen) { cookies :: Either String (Object Values), sessions :: Sessions store | c }) Unit