Skip to main content
Module

x/dactyl/mod.ts

Web framework for Deno, built on top of Oak 🦇
Latest
import * as dactyl from "https://deno.land/x/dactyl@v0.1.0-alpha/mod.ts";

Classes

Bootstrap class responsible for registering controllers onto Router, and starting the Oak webserver

General purpose HttpException export class, can be raised at any stage of the request lifecycle, resulting in oak appropriately handling the error. Expected JSON payload is:

Router subclass - abstraction on top of Router class from Oak.

Functions

Parameter decorator - maps context.request.body() onto controller actions as an argument, e.g.

Parameter decorator - maps whole context onto controller actions as an argument, e.g.

Controller Class decorator responsible for initialising metadata on the controller class. Defines the prefix for all subsequent routes defined on the controller.

Method decorator function for mapping Delete requests.

Method decorator function for mapping Get requests.

Parameter decorator - maps context.request.headers onto controller actions as an argument, e.g.

HttpStatus MethodDecorator specifies the default response code of a given controller action, E.g.

Parameter decorator - maps context.params onto controller actions as an argument, e.g.

Method decorator function for mapping Patch requests.

Method decorator function for mapping Post requests.

Method decorator function for mapping Put requests.

Parameter decorator - maps url.searchParams.entries() onto controller actions as an argument, e.g.

Parameter decorator - maps context.request onto controller actions as an argument, e.g.

Parameter decorator - maps context.response onto controller actions as an argument, e.g.