Skip to main content

Ajax

Namespaces

Enumerations

StatusCode

Enumeration Members

Enumeration MemberValue
InternalServerError500
NoContent204
NotFound404
Ok200

Classes

Exception

Constructors

Constructor
new Exception(response): Exception;
Parameters
ParameterType
responseIResponse
Returns

Exception

Properties

response
response: IResponse;

Interfaces

IRequestParameters

Properties

data?
optional data?: string;
headers?
optional headers?: object[];
name
name: string;
value
value: string;
responseType?
optional responseType?: XMLHttpRequestResponseType;
type
type: string;
url
url: string;

IResponse

Properties

contentType
contentType: string;
status
status: number;
value
value: string;
xhr
xhr: XMLHttpRequest;

Variables

request

const request: (parameters) => Promise<IResponse>;

Parameters

ParameterType
parametersIRequestParameters

Returns

Promise<IResponse>

Functions

getJson()

function getJson(url): Promise<IResponse>;

Parameters

ParameterType
urlstring

Returns

Promise<IResponse>


postJson()

function postJson(url, data): Promise<IResponse>;

Parameters

ParameterType
urlstring
datastring

Returns

Promise<IResponse>

Was this page helpful?