Skip to content

ui-router-server / fetch / DelegateHandler

Type Alias: DelegateHandler<Args> ​

ts
type DelegateHandler<Args> = (request, ...args) => 
  | Response
| Promise<Response>;

Defined in: fetch.ts:141

Answers a request whose pathname matched a delegating state: fetch-shaped, so a Hono app's fetch or a Worker's handler fits bare. It receives the original request, body unread, plus the arguments the adapter was called with; its Response goes out untouched. Read the matched route with delegateContext.

Type Parameters ​

Type ParameterDefault type
Args extends unknown[][]

Parameters ​

ParameterType
requestRequest
...argsArgs

Returns ​

| Response | Promise<Response>