restRespBodySize (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 response.

 

Input:

resp : SYSHANDLE

A handle to the response.

 

 

Returns: DINT

>=0


- Size of response in bytes

0


- Not supported

-1


- Invalid response

-2


- The response is too large to report.

 

Declaration:

FUNCTION restRespBodySize : DINT;
VAR_INPUT
  resp            : SYSHANDLE;
END_VAR;

 

 

Example:

Please see the "Examples - REST Basic Authentication Example"