Search.../

WixFetchResponse

An object returned by the fetch() function representing an HTTP response to a fetch. Learn more.

Guides

Additional information about this section

Properties

Store values associated with an object

  • bodyUsed

    Indicates whether the body of the response has been used yet.

  • headers

    The response headers.

  • ok

    Indicates if the request was successful, meaning its status is in the range 2xx.

  • status

    The response status code.

  • statusText

    The response status message.

  • url

    The response URL.

Functions

Perform actions on an object

  • json( )

    Reads the response body as JSON.

  • text( )

    Reads the response body as a string.