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

std/http/file_server.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.203.0/http/file_server.ts";

Functions

Serves the files under the given directory root (opts.fsRoot).

Returns an HTTP Response with the requested file as the body.

Interfaces

Interface for serveDir options.

Interface for serveFile options.