Vely logo install
examples
documentation

Vely 15.2.0 released on Jan 18, 2023
Articles updated Jan 17, 2023

set-req


Issues with this documentation page? Report here.

Purpose:


Set request data.

Syntax:



set-req data <data>


Description:


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) 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. Vely elephant logo (c) 2022 DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.