Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dropserver_app/approutes.ts>RoutesBuilder#staticFileHandler

Library that helps you create Dropserver applications
Go to Latest
method RoutesBuilder.prototype.staticFileHandler
import { RoutesBuilder } from "https://deno.land/x/dropserver_app@v0.2.1/approutes.ts";

Create a static file handler with the passed options. Static file handlers created this way are handled by the Dropserver host and do not require a running sandbox, saving resources.

Parameters

see StaticOpts struct.

Returns

a handler used to create route.