class JSONResponse
extends CachableResponse
Re-export
import { JSONResponse } from "https://deno.land/x/keywork@v6.0.1/http/mod.ts";
A response sent to the client containing a JSON object.
Constructors
new
JSONResponse(json: { },
request?: globalThis.Request,
etag?: string,
cacheControlOptions?: CacheControlDirectives,
headersInit?: HeadersInit,
pretty?,