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

x/reno/reno/mod.ts>jsonResponse

A thin, testable routing library designed to sit on top of Deno's standard HTTP module
Go to Latest
function jsonResponse
import { jsonResponse } from "https://deno.land/x/reno@v2.0.75/reno/mod.ts";

A response creator function for building JSON responses, that: defaults the Content-Type header to "application/json"; and serialises the JSON body to a string that's then encoded as a Uint8Array

Type Parameters

TResponseBody

Parameters

optional
headers = [UNSUPPORTED]
optional
status = [UNSUPPORTED]