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

x/effection/www/routes/serve-tar.ts>serveTarEntry

Structured concurrency and effects for JavaScript
Latest
function serveTarEntry
import { serveTarEntry } from "https://deno.land/x/effection@4.0.0-alpha.3/www/routes/serve-tar.ts";

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

Parameters

req: Request

The server request context used to cleanup the file handle.

entry: TarEntry

Path of the file to serve.

optional
unnamed 2: ServeTarEntryOptions = [UNSUPPORTED]