Home Reference Source
import {Terrier} from './terrier-repo/mod.ts'
public class | source

Terrier

Web framework for Deno

Constructor Summary

Public Constructor
public

constructor(errHandler: *)

Initiate Terrier with an optional error handler

Member Summary

Public Members
public

Callback to be used when starting the HTTP server

public

Default error handler if nothing is specified in constructor

public
public

stack: *[]

public

use: *

Push to the middleware stack

Public Constructors

public constructor(errHandler: *) source

Initiate Terrier with an optional error handler

Params:

NameTypeAttributeDescription
errHandler *

An optional error handler when something goes wrong.

Public Members

public callback: * source

Callback to be used when starting the HTTP server

public defaultErrHandler: * source

Default error handler if nothing is specified in constructor

public errHandler: * source

public stack: *[] source

public use: * source

Push to the middleware stack