restReqBodySize (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will return the size of the body content in the request.

 

Input:

req : SYSHANDLE

A handle to the request.

 

 

Returns: DINT

>=0


- Size of request body in bytes

0


- Not supported

-1


- Invalid response

-2


- The request body is too large to report.

 

Declaration:

FUNCTION restReqBodySize : DINT;
VAR_INPUT
  req            : SYSHANDLE;
END_VAR;

 

 

Example:

Please see the "Examples - REST Basic Authentication Example"