Interface MKHttpResponse

Http Request Response.

Hierarchy

  • MKHttpResponse

Properties

headers?: MKHeaders

Response headers.

json: (<T>() => T)

Type declaration

    • <T>(): T
    • Response JSON method to return response data in JSON format.

      Type Parameters

      • T

      Returns T

ok: boolean

Request successful.

redirected?: boolean

True, if redirected.

responseTime: number

Time taken for the request-response to complete in milliseconds.

status: number

Response Status Code.

statusText: string

Response's status message.

text: (() => Promise<string>)

Type declaration

    • (): Promise<string>
    • Returns Promise for the response text.

      Returns Promise<string>

url: string

Response url.