Skip to main content
Module

x/peko/mod.ts>staticHandler

Featherweight server toolkit for apps on the edge 🐣⚡
Go to Latest
variable staticHandler
Re-export
import { staticHandler } from "https://deno.land/x/peko@1.8.0/mod.ts";

Generates Response body from file URL and Content-Type and ETAG headers. Optionally: provide custom headers and/or body transform fcn.

type

(fileURL: URL, opts?: staticHandlerOptions) => Handler