Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

send

import { send } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/deps.ts";

Asynchronously fulfill a response with a file from the local file system.

Requires Deno read permission for the root directory.

async function send(
{ request, response }: Context<any>,
path: string,
options?: SendOptions,
): Promise<string | undefined>;
§
send({ request, response }: Context<any>, path: string, options?: SendOptions): Promise<string | undefined>
[src]

§Parameters

§
{ request, response }: Context<any>
[src]
§
path: string
[src]
§
options?: SendOptions optional
[src]

§Return Type

§
Promise<string | undefined>
[src]