This function will release a REST request.
Input:
req : SYSHANDLE
A handle to the request.
Returns: INT
1
|
|
- Success
|
0
|
|
- Not supported
|
-1
|
|
- Invalid request
|
Declaration:
FUNCTION restReqFree : INT;
VAR_INPUT
req : ACCESS SYSHANDLE;
END_VAR;
Example:
INCLUDE rtcu.inc
PROGRAM example;
VAR
rc : INT;
req : SYSHANDLE;
END_VAR
BEGIN
rc := restReqCreate(req := req, url := "https://www.example.com");
...
rc := restReqFree(req := req);
END;
END_PROGRAM;
|