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

x/drash/mod.ts

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
import * as drash from "https://deno.land/x/drash@v2.7.0/mod.ts";

Classes

This class is for throwing errors in the request-resource-response lifecycle.

A class that holds the representation of an incoming request

This is the base resource class for all resources. All resource classes must extend this base resource class.

This class handles the entire request-resource-response lifecycle. It is in charge of handling incoming requests, matching them to resources for further processing, and sending responses based on the processes set in the resource. It is also in charge of sending error responses that "bubble up" during the request-resource-response lifecycle.

Interfaces

An interface to help type key-value pair objects with different values.

This is used to type a MIME type object. Below are more details on the members in this interface.

path_parameters A key-value string defining the path parameters that were passed in by the request. This value is set in resource_handler.ts#getResource().

Options to help create the server object.

path_parameters A key-value string defining the path parameters that were passed in by the request. This value is set in resource_handler.ts#getResource().