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

x/danet/src/deps.ts

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
import * as danet from "https://deno.land/x/danet@1.7.3/src/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.

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

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.

Functions

Given a context, return the .request.url.searchParams as a Map of keys and values of the params.

Set text color to green.

Set text color to red.

A default metadata decorator factory that can be used on a class, class member, or parameter.

Set text color to white.

Set text color to yellow.

Interfaces

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