Skip to main content
Module

x/keywork/mod.ts>Router.Fetcher

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
interface Router.Fetcher
Re-export
import { type Router } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { Fetcher } = Router;

Cloudflare Usage

Events are handled by defining and exporting an object with method handlers that correspond to event names:

export default {
  fetch(request, env, context) {
    return new Response('Hello')
  },
}

In this setup, all incoming requests are classified as 'fetch' events. The fetch handler receives the Request and replies with a Response.

Type Parameters

optional
BoundAliases = { }

Properties

optional
displayName: string

A display name used for debugging and log messages.