ui-router-server / fetch / FetchHandler
Type Alias: FetchHandler<Args>
ts
type FetchHandler<Args> = (request, ...args) => Promise<
| Response
| null>;Defined in: fetch.ts:60
The WinterCG handler: a verdict answered, or null to pass to the host. args (a Worker's env and ctx) are forwarded to a delegate untouched.
Type Parameters
| Type Parameter | Default type |
|---|---|
Args extends unknown[] | [] |
Parameters
| Parameter | Type |
|---|---|
request | Request |
...args | Args |
Returns
Promise< | Response | null>