Skip to main content
Module

x/dectyl/mod.ts>handlers.fileFetchHandler

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
function handlers.fileFetchHandler
import { handlers } from "https://deno.land/x/dectyl@0.6.2/mod.ts";
const { fileFetchHandler } = handlers;

A fetch handler that returns local files that are requested by the worker.

This is useful when the worker is attempting to access static assets from its repo using import.meta.url as the base for a fetch request.

Parameters

evt: RequestEvent