Vely logo Empower C
install     tutorials     examples     documentation     license     about

11.0.11 released on Jul 25, 2022

Vely dispatch request


"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).


Requests ( non_request   after_request_handler   before_request_handler   input-param   request   startup_handler   url-param   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. This web page is licensed under CC-BY-SA-4.0.