Server.Session

type alias Decoder decoded =
Decoder decoded
= NoCookies
| MissingHeaders
type Session
= Session (Dict String Value)
type Value
= Persistent String
| ExpiringFlash String
| NewFlash String
clearFlashCookies : Dict String String -> Dict String String
{ name : String
, secrets : DataSource (List String)
, sameSite : String
}
-> Parser request
-> ( request
-> Result () Session
-> DataSource ( Session, Response data errorPage )
)
-> Parser (DataSource (Response data errorPage))
flashPrefix : String
get : String -> Session -> Maybe String
insert : String -> String -> Session -> Session
remove : String -> Session -> Session
setValues : Session -> Value
succeed : constructor -> Decoder constructor
unwrap : Value -> String
update : String -> (Maybe String -> Maybe String) -> Session -> Session
withFlash : String -> String -> Session -> Session
{ name : String
, secrets : DataSource (List String)
, sameSite : String
}
-> Parser request
-> ( request
-> Result () (Maybe Session)
-> DataSource ( Session, Response data errorPage )
)
-> Parser (DataSource (Response data errorPage))