[@liveryvideo/player](../index.md) / SourceFetch

# Type Alias: SourceFetch()

> **SourceFetch** = (`url`, `options?`) => `Promise`\<`Response`\>

Function to override default `fetch` with for stream source requests.
This can be used to support eCDNs (Enterprise Content Delivery Networks).

## Parameters

### url

`string`

Request URL

### options?

Request options

#### credentials?

`RequestCredentials`

Whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.

#### headers?

\{ `Range`: `string`; \}

An object literal request headers object, only supporting a `'Range'` header for now.

#### headers.Range

`string`

#### method?

`"HEAD"`

Request method, only supporting `'HEAD'` for now, defaults to `'GET'`.

#### signal?

`AbortSignal`

Request AbortSignal.

## Returns

`Promise`\<`Response`\>

Promise of Response
