apiary-clientsession-0.13.2: clientsession support for apiary web framework.

Safe HaskellNone

Web.Apiary.ClientSession.Explicit

Contents

Synopsis

Documentation

withSession :: MonadIO m => SessionConfig -> (Session -> m b) -> m bSource

embedKeyConfig :: FilePath -> ExpQSource

generate and embed key at compile time. since 0.13.2.

This function embed as SessionConfig with default config. so you can configure it. but don't configure sessionKey.

 withSession $embedDefaultKeyConfig { csrfTokenCookieName = "foo" } $ run 3000 . runApiary def $ do
     route define ...

actions

filters

session :: (Functor n, MonadIO n, Strategy w, Query a) => Session -> ByteString -> proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m bSource

checkToken :: (Functor n, MonadIO n) => Session -> ApiaryT c n m a -> ApiaryT c n m aSource

lowlevels

getSessionValueSource

Arguments

:: Session 
-> UTCTime

current time

-> ByteString 
-> Maybe ByteString 

reexports

deleteCookie