Module

x/drash/mod.ts>Interfaces.IService

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
interface Interfaces.IService
import { type Interfaces } from "https://dotland.deno.dev/x/drash@v2.7.0/mod.ts";
const { IService } = Interfaces;

Properties

optional
runBeforeResource: (request: DrashRequest, response: Response) => void | Promise<void>

Method that is ran before a resource is handled

optional
runAfterResource: (request: DrashRequest, response: Response) => void | Promise<void>

Method that is ran after a reosurce is handled

optional
runAtStartup: (options: IServiceStartupOptions) => void | Promise<void>

Method that runs during server build time.