Vely logo install examples
documentation about

14.2.0 released on Nov 29, 2022

After request handler



PURPOSE:


Execute your code after a request is handled.

SYNTAX:



void _after ( ) ...


DESCRIPTION:


Every Vely request goes through a request dispatcher (i.e. vely_dispatch_request() function). In order to specify your code to execute after a request is handled, create a source file "_after.vely" and implement a function "void _after()", 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-request handler does not execute either. If you use exit-request to exit current request handling, after-request handler still executes.

EXAMPLES:


Here is a simple implementation of after-request handler that just outputs "Hi there!!":

#include <vely.h>

void _after()
{
     @Hi there!!
}


SEE ALSO:


Requests ( after_request_handler   before_request_handler   building_URL   global_request_data   non_request   normalized_URL   request   request_URL   startup_handler   vely_dispatch_request  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Some icons copyright PaweĊ‚ Kuna licensed under MIT. Vely elephant logo copyright DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.