set-req
Purpose: Set request data.
set-req sets information used to process a request. Some of this information is used by Vely and some is used by you in your code.
If you wish to set up
global_request_data, you can do so by providing <data> in the "data" clause, which is a pointer to any type. Internally, this pointer is saved as void*, so it can be cast to anything. <data> can be retrieved later anywhere during a request with
get-req (see "data" clause).
Examples
To set global request data:
my_type *mydata;
...
set-req data mydata
See
global_request_data for more details and an example.
See also
Request information (
get-req input-param request-body set-input set-req )
SEE ALL (
documentation)