Go to Latest
function createCommonResponse
import { createCommonResponse } from "https://dotland.deno.dev/std@0.181.0/http/util.ts";

Internal utility for returning a standardized response, automatically defining the body, status code and status text, according to the response type.

Parameters

status: Status
optional
body: BodyInit | null
optional
init: ResponseInit

Returns

Response