Class

Response

Response(xhr)

This class wraps an XMLHttpRequest to maintain compatibility with the fetch API.
Constructor

# new Response(xhr)

Parameters:
Name Type Description
xhr XMLHttpRequest The request to be wrapped.
See:

View Source lib/client/HttpClient.ts, line 36

Methods

# json() → {any}

Returns the JSON decoded response.

View Source lib/client/HttpClient.ts, line 249

any

# parseRetryAfterHeader() → {number}

Returns the value for Retry-After contained in the response header.

View Source lib/client/HttpClient.ts, line 256

number