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.
Parameters
optional
init: PackRequestInit & { body?: B; headers?: HeadersInit & { content-type?: CT; content-disposition?: CD; }; }