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

x/masx200_deno_http_middleware/deps.ts>text

Deno 原生 HTTP 服务器的中间件框架
Go to Latest
function text
import { text } from "https://deno.land/x/masx200_deno_http_middleware@2.2.2/deps.ts";

Create a text response. Content-Type is set to "text/plain; charset=utf-8" unless explicitly set.

Parameters

text: string
optional
init: ResponseInit