View Source Bodyguard.Plug (Bodyguard v2.4.3)
Work with Actions embedded in connections.
Summary
Functions
Assign an Action to the connection.
Modify the existing Action on the connection, in-place.
Functions
@spec 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
.
@spec 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.