Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiResponseData<T>

Type parameters

  • T

Hierarchy

Index

Properties

body

body: T

The returned data from the body

method

method: string = ""

Original HTTP method

response

response: AjaxResponse

Detailed AjaxResponse, if applicable

status

status: number = 0

Status number

url

url: string = ""

Request URL

Methods

Static fromAjaxResponse

  • fromAjaxResponse<T>(ajaxResponse: AjaxResponse, dataType?: undefined | object, jsonConvert?: JsonConvert): ApiResponseData<T>
  • Create an instance from an AjaxResponse. If the return type in the body shall be checked, this method requires the arguments dataType and jsonConvert.

    throws

    DataError

    Type parameters

    • T

    Parameters

    • ajaxResponse: AjaxResponse
    • Optional dataType: undefined | object
    • Optional jsonConvert: JsonConvert

    Returns ApiResponseData<T>

Generated using TypeDoc