Skip to main content
Module

x/cav/mod.ts>packResponse

A server framework for Deno
Go to Latest
function packResponse
Re-export
import { packResponse } from "https://deno.land/x/cav@0.2.3/mod.ts";

Serializes a new Response, which can then be deserialized back into the input body using unpack().

Type Parameters

optional
B = undefined
optional
CT = undefined
optional
CD = undefined

Parameters

optional
init: PackResponseInit & { body?: B; headers?: HeadersInit & { content-type?: CT; content-disposition?: CD; }; }