Skip to content

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

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

parameters ​

MessageParameter[]

trackProperties? ​

TrackProperty[] = []

Returns ​

FetchOk

Properties ​

endLocation ​

readonly endLocation: Location

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


endOfTrack ​

readonly endOfTrack: boolean


parameters ​

readonly parameters: MessageParameter[]


trackProperties ​

readonly trackProperties: TrackProperty[] = []

Methods ​

getType() ​

getType(): ControlMessageType

Returns ​

ControlMessageType


serialize() ​

serialize(): FrozenByteBuffer

Returns ​

FrozenByteBuffer


parsePayload() ​

static parsePayload(buf): FetchOk

Parameters ​

buf ​

BaseByteBuffer

Returns ​

FetchOk