Bodyguard v2.0.0 Bodyguard.Plug
Work with Actions embedded in connections.
Summary
Functions
put_action(conn, action, key \\ :action)
put_action(conn :: Plug.Conn.t, action :: Bodyguard.Action.t, key :: atom) :: Plug.Conn.t
Assign an Action to the connection.
Inserts it into conn.assigns.action
.
update_action(conn, fun, key \\ :action)
update_action(conn :: Plug.Conn.t, fun :: (Bodyguard.Action.t -> Bodyguard.Action.t), key :: atom) :: Plug.Conn.t
Modify the existing Action on the connection, in-place.