TimeOut

Applies to

HTTPClient, RestClient, TokenRequest, OAuthRequest objects

Description

The TimeOut property specifies the timeout seconds. The default value is 60 and 0 means no timeout.

Usage

In a painter

To specify the timeout seconds:

  • Use the spin control or enter a long value in the timeout text box on the General page of the object's Properties view.

In scripts

The TimeOut property takes a long value. The following line sets the TimeOut property to 30 seconds:

HttpClient lnv_HttpClient 
lnv_HttpClient = Create HttpClient

//Set timeout to 30 seconds
lnv_HttpClient.Timeout = 30

//Send GET request
lnv_HttpClient.SendRequest("GET", " https://demo.appeon.com/PB/webapi_client/employee/102")