after-handler - (service-processing)
Contents
Description
Every Golf request goes through a request dispatcher (see request()). In order to specify your code to
execute after a request is handled, create source file "after-handler.golf" and implement a handler that
starts with "after-handler" and ends with "end-after-handler", which will be automatically picked up and
compiled with your application.
If no request executes (for example if your application does not handle a given request), after-handler
handler does not execute either. If you use exit-handler to exit current request handling, after-handler
handler still executes.
Examples
Here is a simple implementation of after-handler handler that just outputs "Hi there!!":
after-handler
@Hi there!!
end-after-handler
Name
after-handler - (service-processing)
Purpose
Execute your code after a request is handled.
See Also
Service processing
after-handlerbefore-handlerbegin-handlercall-handler See all documentation
$DATE $VERSION GOLF(2gg)
Syntax
after-handler
...
end-after-handler
