Interface: IHttpResponseMessage

Experimental

This API is in preview and not ready for production use. Expect breaking changes in the future. Represents a response message from an HTTP request. This is a subset of the Aurelia HttpResponseMessage class.

Properties

content

content: any

Experimental

Gets the content of the response.


headers

headers: IHeaders

Experimental

The headers received with the response.


isSuccess

isSuccess: boolean

Experimental

The success status of the request based on status code.


mimeType

mimeType: string

Experimental

The mime type of the response.


requestMessage

requestMessage: IRequestMessage

Experimental

The request message that resulted in this response.


response

response: any

Experimental

The raw response.


responseType

responseType: string

Experimental

The type of the response.


reviver()

reviver: (key, value) => any

A reviver function to use in transforming the content.

Parameters

key: string

value: any

Returns

any


statusCode

statusCode: number

Experimental

The status code of the response.


statusText

statusText: string

Experimental

The status text.