Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/drash/src/standard/handlers/Handler.ts>Handler

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.
Latest
class Handler
implements IHandler
import { Handler } from "https://deno.land/x/drash@v3.0.0-beta.2/src/standard/handlers/Handler.ts";

A class to be extended by handlers so they can share the same interface.

Properties

protected
next: Handler | null

Handlers can be chained together using this property. See example.

Methods

handle<Output>(input: any): Promise<Output>
sendToNextHandler<Output>(input: any): Promise<Output>