Skip to content

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 ParameterDefault type
Args extends unknown[][]

Parameters ​

ParameterType
requestRequest
...argsArgs

Returns ​

Promise< | Response | null>