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

x/keywork/http/mod.ts>JSONResponse

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
class JSONResponse
extends CachableResponse
Re-export
import { JSONResponse } from "https://deno.land/x/keywork@v6.2.1/http/mod.ts";

A response sent to the client containing a JSON object.

Constructors

new
JSONResponse(
json: { },
request?: Request,
etag?: string,
cacheControlOptions?: CacheControlDirectives,
headersInit?: HeadersInit,
pretty?,
)