---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / readWebDavTextRange

# Function: readWebDavTextRange()

> **readWebDavTextRange**(`response`, `offset`, `maxBytes`): `Promise`\<[`WebDavTextRange`](../interfaces/WebDavTextRange.md)\>

Defined in: [packages/b2c-tooling-sdk/src/clients/webdav-paths.ts:152](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/clients/webdav-paths.ts#L152)

Decodes a ranged WebDAV text response, leaving a split trailing UTF-8
character for the next range. With `offset` undefined the response is a
suffix (tail) range, and the start comes from `Content-Range`.

## Parameters

### response

`Response`

### offset

`number` | `undefined`

### maxBytes

`number`

## Returns

`Promise`\<[`WebDavTextRange`](../interfaces/WebDavTextRange.md)\>

## Throws

WebDavReadError when the range is ignored or invalid, or the bytes are not UTF-8 text
