import { type ServeStaticOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/http/server.ts";
Options for serving static files, used by serveStatic.
Properties
The file system directory to serve files from. If not set, the current
working directory will be used. This option is not available in
Cloudflare Workers, set kv
instead.
optional
kv: KVNamespaceA KV namespace in Cloudflare Workers where the static files are stored.
This option is only needed in Cloudflare Workers, usually obtained from
the __STATIC_CONTENT
binding.
Whether to list the directory entries when the URL pathname is a directory. If not set, a 403 Forbidden response will be returned.
optional
headers: HeadersInitExtra headers to be sent with the response.