Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Hook

import { Hook } from "https://raw.githubusercontent.com/gemrest/laurali/main/mod.ts";

One of few hooks of a Server

enum Hook {
ON_PRE_ROUTE = 0,
ON_POST_ROUTE = 1,
ON_ERROR = 2,
}

§Members

§
Hook.ON_ERROR = 2
[src]

The response delivered to a client when the Server experiences any error while evaluating the result of a route function, or if the Server cannot find a route function for a given path.

§
Hook.ON_POST_ROUTE = 1
[src]

Called after a connection to a client has concluded

§
Hook.ON_PRE_ROUTE = 0
[src]

Called before a connection to a client has been responded to