Fetcher
Overview
See
Usage
- Node
- Deno
import { Fetcher } from 'keywork/router/interfaces'
import { Fetcher } from 'https://deno.land/x/keywork/router/interfaces'
Type parameters
Name | Type |
---|---|
BoundAliases | {} |
Implemented by
Debug Properties
displayName
optional displayName: `string`
A display name used for debugging and log messages.
Defined in
router/interfaces/Fetcher.ts:41
Cloudflare Usage
Events are handled by defining and exporting an object with method handlers that correspond to event names:
In this setup, all incoming requests are classified as
'fetch'
events. The fetch handler receives the Request and replies with a Response.