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

x/masx200_deno_http_middleware/deps.ts>json

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

Create a JSON response. Content-Type is set to "application/json; charset=utf-8" unless explicitly set.

Parameters

value: unknown
optional
init: ResponseInit