Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/oak/deps.ts

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
import * as denoNest from "https://deno.land/x/deno_nest@v3.6.0/modules/oak/deps.ts";

Classes

A class which registers middleware (via .use()) and then processes inbound requests against that middleware (via .listen()).

Provides context about the current request and response to middleware functions, and the current instance being processed is the first argument provided a Middleware function.

Provides an way to manage cookies in a request and response on the server as a single iterable collection, as well as the ability to sign and verify cookies to prevent tampering.

An interface for registering middleware that will run when certain HTTP methods and paths are requested, as well as provides a way to parameterize parts of the requested path.

An interface which provides information about the current request. The instance related to the current request is available on the Context's .request property.

An interface to control what response will be sent when the middleware finishes processing the request.

Functions

Asynchronously fulfill a response with a file from the local file system.

Interfaces

Middleware are functions which are chained together to deal with requests.