method IApplication.fetch
IApplication.fetch(request: Request): Promise<Response>

Delegates a web-standard Request to the registered IHttpAdapter.fetch. This works regardless of whether start() was called (Cloudflare Workers path: setHandler runs at start() time, fetch works without listen).

Parameters

request: Request

A web-standard Request

Return Type

Promise<Response>

A web-standard Response

Usage

import { type IApplication } from "common/src/index.ts";