Module

x/drash/src/core/interfaces/IHandler.ts>IHandler

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.
Latest
interface IHandler
import { type IHandler } from "https://dotland.deno.dev/x/drash@v3.0.0-beta.2/src/core/interfaces/IHandler.ts";

A base interface for handler classes.

Type Parameters

optional
Input = unknown

Methods

handle<Res>(req: Input): Promise<Res>

Handle the given input to produce an output. For example, handle a request (the input) to produce a response (the output).

setNext(h: IHandler): IHandler

Set this handler's next handler.