import { type ResolveArg } from "https://deno.land/x/cav@0.2.0-alpha.4/mod.ts";
Arguments available to the resolver of an endpoint.
Type Parameters
Properties
The Request being handled.
A ResponseInit applied to the endpoint response after resolving and packing the value to send to the client. The Headers object is always available.
new URL(req.url)
The CookieJar created after the endpoint matched with the Request.
The parsed path parameters captured while routing the request.
The context created after the endpoint matched the Request.
The parsed query string parameters.
The parsed Request body, if any.
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.