> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FetchGatewayFunc

```ts theme={null}
type FetchGatewayFunc: (url, signal?) => Promise<FetchRequest | FetchResponse>;
```

Called on Gateway URLs.

## Parameters

| Parameter | Type                |
| :-------- | :------------------ |
| `url`     | `string`            |
| `signal`? | `FetchCancelSignal` |

## Returns

`Promise`\<[`FetchRequest`](/sdk/content/classes/FetchRequest) | [`FetchResponse`](/sdk/content/classes/FetchResponse)>

## Source

[utils/fetch.ts:73](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/fetch.ts#L73)
