Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines the base http request to be used with http manager

Hierarchy

Index

Constructors

constructor

  • Parameters

    • url: string
    • Default value timeout: number = 0

    Returns HTTPManagerBaseRequest

Properties

timeout

timeout: number

Defines how much miliseconds will the http requests wait before failing with a timeout. If set to 0, no value will be specifically defined, so the httpmanager default will be used.

url

url: string

The url that will be called as part of this request

Methods

errorCallback

  • errorCallback(): void
  • A method to be executed if an error happens to the request execution. errorMsg will contain the error text and errorCode will contain the numeric error http value

    Returns void

finallyCallback

  • finallyCallback(): void
  • A method to be executed always when the request finishes, even successfully or with an error.

    Returns void

successCallback

  • successCallback(): void
  • A method to be executed inmediately after this request execution finishes successfully. The response parameter will contain the request result data

    Returns void

Generated using TypeDoc