Constructors
constructor
- new HttpValue(__namedParameters: object): HttpValue
Parameters
-
__namedParameters: object
-
base: string
-
interval: number
-
-
name: string
-
path: string
Properties
__variant__
__variant__: string = "HttpValue"
interval
interval: number
Methods
getValue
- getValue(): Promise<string>
Returns Promise<string>
Static fromJSON
Parameters
-
json: object
-
base: string
-
interval: number
-
-
Optional name?: string
-
path: string
A DynamicValue that updates with the return of an HTTP request
example
new HttpValue({ name:"test", method:"GET", base:"https://jsonplaceholder.typicode.com/", path:"todos", interval:2000 })