Files
YouTube.js/docs/api/namespaces/Utils/functions/debugFetch.md
2025-07-22 16:53:42 -03:00

42 lines
896 B
Markdown

[youtubei.js](../../../README.md) / [Utils](../README.md) / debugFetch
# Function: debugFetch()
## debugFetch(input, init)
> **debugFetch**(`input`, `init`?): `Promise`\<`Response`\>
[MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch)
### Parameters
**input**: `URL` \| `RequestInfo`
**init?**: `RequestInit`
### Returns
`Promise`\<`Response`\>
### Defined in
[src/utils/Utils.ts:207](https://github.com/LuanRT/YouTube.js/blob/4ae0cc5c523a2080e68d6c0c1437c78fe318ea30/src/utils/Utils.ts#L207)
## debugFetch(input, init)
> **debugFetch**(`input`, `init`?): `Promise`\<`Response`\>
### Parameters
**input**: `string` \| `URL` \| `Request`
**init?**: `RequestInit`
### Returns
`Promise`\<`Response`\>
### Defined in
[src/utils/Utils.ts:207](https://github.com/LuanRT/YouTube.js/blob/4ae0cc5c523a2080e68d6c0c1437c78fe318ea30/src/utils/Utils.ts#L207)