Constructor
new ValidResponse(response, body)
Parameters:
| Name | Type | Description |
|---|---|---|
response |
Response |
the |
body |
Object | String |
the body of the response |
- Source:
Members
body :Object|String
The content returned by the server. If the response has a Content-Type header of application/json, then body will be parsed into a JavaScript object. Otherwise, body will be a string representing the content returned by the server.
- Source:
response :Response
The fetch Response object, which can be useful for low-level operations. Note that the body stream will be locked.
- Source:
- See:
statusCode :Number
The HTTP Status Code returned by the server (ie. 401, 404, 500, etc.)
- Source: