HttpJsonResponse
Extends:
Extends HttpResponse with extra functionality for working with JSON response data.
The most important addition is the HttpJsonResponse#bodydata property that you will want to use instead of HttpResponse#body.
Member Summary
Public Members | ||
public get |
bodydata: * Get the response body (the responseText attribute of the XMLHttpRequest) decoded from JSON. |
Method Summary
Public Methods | ||
public |
getPrettyfiedBody(): * Overriden to make use of JSON.stringify to produce more pretty output. |
Inherited Summary
From class HttpResponse | ||
public get |
body: * Get the response body (the responseText attribute of the XMLHttpRequest). |
|
public get |
status: * Get the status code of the response (the status attribute of the XMLHttpRequest). |
|
public |
request: * |
|
public |
getPrettyfiedBody(): * Get HttpResponse#body pretty formatted. |
|
public |
isClientError(): * Returns |
|
public |
isConnectionRefused(): * Returns |
|
public |
isRedirect(): * Returns |
|
public |
isServerError(): * Returns |
|
public |
isSuccess(): * Returns |
|
public |
Get the response header as string. |
|
public |
Create a HttpResponseError from this HttpResponse. |
|
public |
Format as a string suitable for debugging. |
Public Members
public get bodydata: * source
Get the response body (the responseText attribute of the XMLHttpRequest) decoded from JSON.
Public Methods
public getPrettyfiedBody(): * source
Overriden to make use of JSON.stringify to produce more pretty output.
Override:
HttpResponse#getPrettyfiedBodyReturn:
* |