Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/keywork/router/interfaces/Fetcher.ts>Fetcher

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
interface Fetcher
import { type Fetcher } from "https://deno.land/x/keywork@v6.2.1/router/interfaces/Fetcher.ts";

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.