Class: HttpSyncClient

HttpSyncClient()

Http client

Constructor

new HttpSyncClient()

Source:

Methods

(static) getAllowClearTextTraffic()

Check if clear text traffic (HTTP) is allowed, otherwise you need to use secure HTTPS protocols. Clear text traffic should ONLY be used for testing purposes.
Source:
Returns:
True if allow clear text traffic

(async, static) getResponse(urlPath)

Get a response from a url
Parameters:
Name Type Description
urlPath The url
Source:
Throws:
Error if error with IO
Returns:
The response

(static) setAllowClearTextTraffic(allow)

Set to true to allow clear text traffic (HTTP), otherwise you need to use secure HTTPS protocols. Clear text traffic should ONLY be used for testing purposes.
Parameters:
Name Type Description
allow True to allow clear text traffic.
Source: