"void vely_dispatch_request()" is an automatically generated
request-dispatching function in Vely. It uses "req" input parameter to call the appropriate request handler.
For example, if the value of "req"
input-parameter is "myreq", then function with signature "void myreq()" will be called (such function must be implemented in "myreq.v" 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 (i.e. "br vely_dispatch_request" in "gdb").
If no request has been recognized (i.e. "req"
input-parameter does not match any request-handling .v source file), then no request handler will execute and
before_request_handler and
after_request_handler will not execute either. In any case, 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).