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.
Returns:
True if allow clear text traffic
(async, static) getResponse(urlPath)
Get a response from a url
Parameters:
Name | Type | Description |
---|---|---|
urlPath |
The url |
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. |