Skip to main content
Module

x/packup/deps.ts>serveIterable

📦 Zero-config web application packager in Deno
Go to Latest
function serveIterable
import { serveIterable } from "https://deno.land/x/packup@v0.1.13/deps.ts";

Serves the items from the async iterable of the files matching by its file name.

ex. If file.name === "foo.txt", it's served at url "http://localhost:3000/foo.txt". If file.name === "foo/bar.html", it's served at url "http://localhost:3000/foo/bar.html".

Parameters

src: AsyncIterable<File>
optional
unnamed 1: ServeOptions = [UNSUPPORTED]

Returns

Server