define_atEnd
Registers code to run at the end of response processing.
Target
Signature
1define_atEnd(code)Registers code to run at the end of response processing.
define_atEnd is a global callable that can be used wherever an expression is valid. define_atEnd belongs at the request or response boundary. Treat visitor input as untrusted, validate before use, and encode values before writing them into HTML.
Parameters
code- Required value. Supply
codepositionally unless the signature shows a keyword form.
Examples
Basic call
1define_atEnd({ log_detail('done') })The example belongs near a request or response boundary; validate visitor input before trusting it.