import * as cav from "https://deno.land/x/cav@0.2.3/endpoint.ts";
Functions
Creates an Endpoint for serving static assets. The routed request path will be used to find the asset to serve from inside the assets directory specified. | |
Creates an endpoint for serving a TypeScript or JavaScript bundle. The bundle is cached into memory and will be watched and rebundled whenever updated, if possible. | |
Constructs a new Endpoint request handler. The schema properties will be assigned to the returned endpoint function, so that they can be reused on other endpoint schemas. | |
Creates an Endpoint that always redirects. The "path" schema option is "/", i.e. the whole request path should have been consumed by the containing router(s) before the request reaches a redirect endpoint. If the redirect path doesn't specify an origin, the origin of the request is used. If the path starts with a "./" or a "../", it's joined with the pathname of the Request url to get the final redirect path. The default status is 302. |
Interfaces
Arguments available to Context functions. | |
Options for processing requests, used to construct Endpoints. | |
Arguments available to a ResolveError function. | |
Arguments available to the resolve of an endpoint. |
Type Aliases
Initializer options for creating an | |
Initializer options for creating a | |
Cav Endpoint handler, for responding to requests. |