Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HTTPService

Wrapper class for the request package. Used to make HTTP calls.

Hierarchy

  • HTTPService

Index

Constructors

Properties

Methods

Constructors

constructor

  • new HTTPService(options: GotJSONOptions, debug?: boolean): HTTPService

Properties

Private Optional debug

debug: boolean

Private options

options: GotJSONOptions

Methods

get

  • get(url: string, authenticationToken?: string): Promise<any>
  • Base method for GET requests

    memberof

    HTTPService

    Parameters

    • url: string

      Url to GET from

    • Optional authenticationToken: string

    Returns Promise<any>

post

  • post(url: string, data: GotJSONOptions): Promise<any>
  • Parameters

    • url: string
    • data: GotJSONOptions

    Returns Promise<any>