Skip to main content
Module

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

Structured concurrency and effects for JavaScript
Go to Latest
function serveTarEntry
import { serveTarEntry } from "https://deno.land/x/effection@3.0.0-beta.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]