Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function createCommonResponse
Deprecated
Deprecated

(will be removed after 0.210.0)

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

import { createCommonResponse } from "https://deno.land/std@0.208.0/http/util.ts";

Parameters

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