import { type APIResponse } from "https://deno.land/x/aleph@v0.3.0-beta.12/types.d.ts";
An interface that aligns to the parts of the Response
with helpers.
Properties
headers: Headers
Methods
addHeader
adds a new value onto an existing response header of the request, or
adds the header if it does not already exist.
setHeader
sets a new value for an existing response header of the request, or adds
the header if it does not already exist.
removeHeader
removes the value for an existing response header of the request.
redirect
replies to redirect the client to another URL with optional response status
defaulting to 302.