Module
Hyper.Session
- Package
- purescript-hyper
- Repository
- owickstrom/hyper
#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
- Modules
- Hyper.
Authentication - Hyper.
Authorization - Hyper.
Conn - Hyper.
ContentNegotiation - Hyper.
Cookies - Hyper.
Form - Hyper.
Form. Urlencoded - Hyper.
Header - Hyper.
Middleware - Hyper.
Middleware. Class - Hyper.
Middleware. QualifiedDo - Hyper.
Node. BasicAuth - Hyper.
Node. FileServer - Hyper.
Node. Server - Hyper.
Node. Server. Options - Hyper.
Node. Session. InMemory - Hyper.
Node. Test - Hyper.
Request - Hyper.
Response - Hyper.
Session - Hyper.
Status - Hyper.
Test. TestServer