Skip to main content
Module

x/cav/serial.ts>packRequest

A server framework for Deno
Go to Latest
function packRequest
import { packRequest } from "https://deno.land/x/cav@0.2.3/serial.ts";

Serializes a new Request, which can then be deserialized using unpack(). Only GET and POST requests are supported; the method used is automatically determined based on the presence of the body init option.

Type Parameters

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

Parameters

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