Skip to main content
Module

x/drash/mod.ts>IService

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

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.