import { type ResolveArg } from "https://deno.land/x/cav@0.2.3/endpoint.ts";
Arguments available to the resolve of an endpoint.
Type Parameters
Properties
Packs a given body into a Response before resolving, which can be useful if
you want to set the response status or in cases where the deserialized
value doesn't match the body type because of explicit content-type headers.
Be sure to declare the headers init option as const
.
Returns a TypeScript/JavaScript bundle as a response. The bundle is cached into memory and, if possible, watched and rebundled whenever updated.
Returns a Response created using an asset from an assets directory.
Returns a redirect Response. If the redirect path doesn't specify an origin, the origin of the current request is used. If the path starts with a ".", it is joined with the pathname of the Request url to get the final redirect path. The default status is 302.