Introduction

The WixFetchResponse object contains information about an HTTP response. More functionality is available in each of the respective Fetch API implementations.

Did this help?

bodyUsed


bodyUsedbooleanRead-only

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

The response's body is considered used once it has been read. For example, after calling the response's json() function, the value of bodyUsed will be true.

JavaScript
let wasBodyUsed = httpResponse.bodyUsed; // false
Did this help?