Skip to main content
Version: Next

IResponseWithUrl

Hierarchy

  • Response
    • IResponseWithUrl

Implemented by

Index

Properties

externalreadonlyinheritedbody

body: null | ReadableStream<Uint8Array<ArrayBuffer>>

externalreadonlyinheritedbodyUsed

bodyUsed: boolean

externalreadonlyinheritedheaders

headers: Headers

The headers read-only property of the Response interface contains the Headers object associated with the response.

MDN Reference

externalreadonlyinheritedok

ok: boolean

The ok read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.

MDN Reference

externalreadonlyinheritedredirected

redirected: boolean

The redirected read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.

MDN Reference

externalreadonlyinheritedstatus

status: number

The status read-only property of the Response interface contains the HTTP status codes of the response.

MDN Reference

externalreadonlyinheritedstatusText

statusText: string

The statusText read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.

MDN Reference

externalreadonlyinheritedtype

type: ResponseType

The type read-only property of the Response interface contains the type of the response. The type determines whether scripts are able to access the response body and headers.

MDN Reference

url

url: string

The url read-only property of the Response interface contains the URL of the response. The value of the url property will be the final URL obtained after any redirects.

MDN Reference

Methods

externalinheritedarrayBuffer

  • arrayBuffer(): Promise<ArrayBuffer>

  • Returns Promise<ArrayBuffer>

externalinheritedblob

  • blob(): Promise<Blob>

externalinheritedbytes

  • bytes(): Promise<Uint8Array<ArrayBuffer>>

  • Returns Promise<Uint8Array<ArrayBuffer>>

externalinheritedclone

  • clone(): Response
  • The clone() method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.

    MDN Reference


    Returns Response

externalinheritedformData

  • formData(): Promise<FormData>

  • Returns Promise<FormData>

externalinheritedjson

  • json(): Promise<any>

externalinheritedtext

  • text(): Promise<string>