"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:
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