Options
All
  • Public
  • Public/Protected
  • All
Menu

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
})

Hierarchy

  • HttpValue

Implements

Constructors

constructor

  • new HttpValue(__namedParameters: object): HttpValue

Parameters

  • __namedParameters: object
    • base: string

      A base part of the URL

    • interval: number
    • method: Method
    • name: string
    • path: string

      The path added after the base

Returns HttpValue

Properties

__variant__

__variant__: string = "HttpValue"

base

base: string

interval

interval: number

method

method: Method

name

name: string | void

path

path: string

url

url: string

Methods

getValue

  • getValue(): Promise<string>

Returns Promise<string>

onValue

Parameters

Returns Unsubscriber

Static fromJSON

Parameters

  • json: object
    • base: string
    • interval: number
    • method: Method
    • Optional name?: string
    • path: string

Returns HttpValue

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.