Options
All
  • Public
  • Public/Protected
  • All
Menu

An Action to send an HTTP request

example

new HttpAction({
      name:"test",
      method:"GET",
      base:"https://jsonplaceholder.typicode.com/",
      path:"todos"
  })

Hierarchy

  • HttpAction

Implements

Constructors

Properties

Methods

Constructors

constructor

  • new HttpAction(__namedParameters: object): HttpAction

Parameters

  • __namedParameters: object
    • base: string

      A base part of the URL

    • method: Method
    • name: string
    • path: string

      The path added after the base

Returns HttpAction

Properties

__variant__

__variant__: string = "HttpAction"

base

base: string

method

method: Method

name

name: string | void

path

path: string

url

url: string

Methods

run

Returns Promise<ActionSuccess>

Static fromJSON

Parameters

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

Returns HttpAction

  • 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.