Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHttpResponseMessage

preview

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.

Hierarchy

  • IHttpResponseMessage

Index

Properties

content

content: any

Gets the content of the response.

returns

the response content.

headers

headers: IHeaders

The headers received with the response.

isSuccess

isSuccess: boolean

The success status of the request based on status code.

mimeType

mimeType: string

The mime type of the response.

requestMessage

requestMessage: IRequestMessage

The request message that resulted in this response.

response

response: any

The raw response.

responseType

responseType: string

The type of the response.

reviver

reviver: function

A reviver function to use in transforming the content.

Type declaration

    • (key: string, value: any): any
    • Parameters

      • key: string
      • value: any

      Returns any

statusCode

statusCode: number

The status code of the response.

statusText

statusText: string

The status text.