Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype Session = Session (Map Text Text)
- sessionSet :: ToHttpApiData a => Text -> a -> Session -> Session
- sessionDel :: Text -> Session -> Session
- sessionLookup :: FromHttpApiData a => Text -> Session -> Maybe a
- sessionEmpty :: Session
- sessionRender :: Session -> ByteString
- sessionParse :: ByteString -> Session
- sessionFromCookies :: [(ByteString, ByteString)] -> Session
- sessionSetCookie :: Session -> ByteString
Documentation
sessionSet :: ToHttpApiData a => Text -> a -> Session -> Session Source #
Set the session key to value
sessionLookup :: FromHttpApiData 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 #