Skip to main content
Module

x/keywork/mod.ts>HTTP.JSONResponse

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

A response sent to the client containing a JSON object.

Constructors

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