---
url: https://docs.moqtail.dev/ts/api/model/classes/FetchOk.md
---
# Class: FetchOk

FETCH_OK (0x18) keeps a body of its own rather than folding into REQUEST_OK, but like
every other response it carries no Request ID: the request stream it arrives on
identifies the request (§10.1).

## Constructors

### Constructor

> **new FetchOk**(`endOfTrack`, `endLocation`, `parameters`, `trackProperties?`): `FetchOk`

#### Parameters

##### endOfTrack

`boolean`

##### endLocation

[`Location`](Location.md)

The last Location the response covers, inclusive. Object 2^64-1 is all of that group.

##### parameters

[`MessageParameter`](../type-aliases/MessageParameter.md)\[]

##### trackProperties?

[`TrackProperty`](../type-aliases/TrackProperty.md)\[] = `[]`

#### Returns

`FetchOk`

## Properties

### endLocation

> `readonly` **endLocation**: [`Location`](Location.md)

The last Location the response covers, inclusive. Object 2^64-1 is all of that group.

***

### endOfTrack

> `readonly` **endOfTrack**: `boolean`

***

### parameters

> `readonly` **parameters**: [`MessageParameter`](../type-aliases/MessageParameter.md)\[]

***

### trackProperties

> `readonly` **trackProperties**: [`TrackProperty`](../type-aliases/TrackProperty.md)\[] = `[]`

## Methods

### getType()

> **getType**(): [`ControlMessageType`](../enumerations/ControlMessageType.md)

#### Returns

[`ControlMessageType`](../enumerations/ControlMessageType.md)

***

### serialize()

> **serialize**(): [`FrozenByteBuffer`](FrozenByteBuffer.md)

#### Returns

[`FrozenByteBuffer`](FrozenByteBuffer.md)

***

### parsePayload()

> `static` **parsePayload**(`buf`): `FetchOk`

#### Parameters

##### buf

[`BaseByteBuffer`](BaseByteBuffer.md)

#### Returns

`FetchOk`
