class Bezel::Plug::Flash

include Bezel::Plug

Carries the flash between requests in the session (after Plug::Session): the messages a request put (Conn#put_flash) are the next request's conn.flash[:kind], and then gone. Messages shown in the same request use Bezel::Flash#now.

src/plug/flash.qz:5

Constants

KEY: String

The session key the flash is kept under.

src/plug/flash.qz:9

Class methods

def self.new -> Bezel::Plug::Flash

The plug.

src/plug/flash.qz:12

Methods

def call(conn: Bezel::Conn) -> Bezel::Conn

The connection changed by this plug.

from Bezel::Plug

src/plug/flash.qz:14

def wrap(conn: Bezel::Conn, rest: (Bezel::Conn) -> Bezel::Conn) -> Bezel::Conn

Runs this plug, then rest (the plugs after it) unless it halted. Override it to act around the rest: its result is the request's.

from Bezel::Plug

src/plug/flash.qz:28