GOLF(2gg)

NAME
after-handler - (service-processing)

PURPOSE
Execute your code after a request is handled.

SYNTAX

        after-handler
        ...
        end-after-handler

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

SEE ALSO
 Service processing

after-handler before-handler begin-handler call-handler See all documentation