class

Kemal::Session::Flash

Inherits Reference < Object

Constants

FLASH_PREFIX = "_flash_"

Constructors

new(session : Session)
Source

Instance methods

[](key : String) : String

env.flash["notice"] - raises if not found

Source
[]=(key : String, value : String)

env.flash["notice"] = "welcome"

Source
[]?(key : String) : String | Nil

env.flash["notice"]? - returns value and marks for deletion

Source