Properties

This section describes the properties associated with the Fetch API.

In this section

Topic Description

body

Contains the stream associated with the Response object.

bodyUsed

Determines if the body is non-null and its stream is distributed.

cache

Contains the cache mode of the request.

credentials

Contains the credentials mode of the request.

destination

Contains the destination of the request.

headers

Contains the Headers object of the response.

headers

Contains the Headers object of the request.

integrity

Contains the integrity metadata of the request.

keepalive

Returns true if Request's keepalive flag is set.

method

Contains the HTTP verb to use for the request.

mode

Contains the mode of the request.

ok

Determines if the response was successful.

redirect

Contains the redirect mode of the request.

referrer

Contains the referrer of the request.

referrerPolicy

Contains the referrer policy of the request.

status

Contains the status code of the response.

statusText

Contains the status message that corresponds to the status code of the response.

type

Contains the type of the response.

type

Contains the type of the request.

url

Contains the URL of the response.

url

Contains the URL of the request.