Skip to main content
Module

x/texa/src/middleware/static.ts>Static.findFile

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
method Static.findFile
import { Static } from "https://deno.land/x/texa@0.8.1/src/middleware/static.ts";

Attempt to find an existing index within a directory.

Parameters

indexes: Set<string>

The indexes to look for.

vanityExtensions: Set<string>

The directory to look in.

path: string
optional
throwOnPermissionDenied: boolean = [UNSUPPORTED]

Returns

Promise<string | void>