Skip to main content
Module

x/texa/mod.ts>Response#file

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
method Response.prototype.file
Re-export
import { Response } from "https://deno.land/x/texa@0.8.1/mod.ts";

Send file contents in response. File contents are loaded in .end().

Parameters

path: string

The file path to read.