Methods
(static) getTimeout() → {number}
- Source:
Returns:
- Type:
-
number
timeout flag
(static) isAllowHttp() → {boolean}
- Source:
Returns:
- Type:
-
boolean
allowHttp flag
(static) setAllowHttp(value) → {void}
Sets allowHttp
flag globally. When set to true
, connections to insecure http protocol servers will be allowed.
Must be set to false
in production. Default: false
.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean
|
new allowHttp value |
Returns:
- Type:
-
void
(static) setDefault() → {void}
Sets all global config flags to default values.
- Source:
Returns:
- Type:
-
void
(static) setTimeout(value) → {void}
Sets timeout
flag globally. When set to anything besides 0, the request will timeout after specified time (ms).
Default: 0.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number
|
new timeout value |
Returns:
- Type:
-
void