Vely logo install examples
documentation about

14.2.0 released on Nov 29, 2022

Vely dispatch request



DESCRIPTION:


"void vely_dispatch_request()" is an automatically generated request-dispatching function in Vely. It uses request name (see request_URL) to call the appropriate request handler.

For example, if the request name is "myreq", then function with signature "void myreq()" will be called - such function must be implemented in "myreq.vely" source code file.

You can implement two hooks into vely_dispatch_request(): one that executes before each request handling (before_request_handler) and one that executes afterwards (after_request_handler).

In terms of debugging, breaking in this function gives you a good starting point to debug the handling of any given request, for instance in gdb:

br vely_dispatch_request

If no request has been recognized (i.e. request name does not match any request-handling .vely source file), then
At the end of the request, all strings allocated by Vely will be freed.

You cannot change the implementation of vely_dispatch_request(), but you can see it in the build directory (see vv).

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.