Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- newtype Session = Session (Map Text Text)
- sessionSet :: ToQueryData a => Text -> a -> Session -> Session
- sessionDel :: Text -> Session -> Session
- sessionLookup :: FromQueryData a => Text -> Session -> Maybe a
- sessionEmpty :: Session
- sessionRender :: Session -> ByteString
- sessionParse :: ByteString -> Session
- sessionFromCookies :: [(ByteString, ByteString)] -> Session
- sessionSetCookie :: Session -> ByteString
Documentation
sessionSet :: ToQueryData a => Text -> a -> Session -> Session Source #
Set the session key to value
sessionLookup :: FromQueryData a => Text -> Session -> Maybe a Source #
sessionRender :: Session -> ByteString Source #
Render a session as a url-encoded query string
sessionParse :: ByteString -> Session Source #
Parse a session as a url-encoded query string
sessionFromCookies :: [(ByteString, ByteString)] -> Session Source #
sessionSetCookie :: Session -> ByteString Source #