Module

x/drash/src/core/Interfaces.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.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.