Vely logo install | documentation | examples | changelog
16.10.0 released May 10, 2023
set-req

Purpose: Set request data.

set-req data <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)


Copyright (c) 2017-2023 Dasoftver LLC