Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "router/index"

Index

Variables

Const Router

Router: RouterConstructor = function (options: any = {}): any {function router(req: OpineRequest,res: OpineResponse,next: NextFunction,): void {(router as any).handle(req, res, next);}setPrototypeOf(router, Router);router.params = {};router._params = [] as any[];router.caseSensitive = options.caseSensitive;router.mergeParams = options.mergeParams;router.strict = options.strict;router.stack = [] as any[];return router as IRouter;} as any

Initialize a new Router with the given options.

param
returns

which is an callable function

Const objectRegExp

objectRegExp: RegExp = /^\[object (\S+)\]$/

Const setPrototypeOf

setPrototypeOf: any = Object.setPrototypeOf

Functions

appendMethods

  • appendMethods(list: any, addition: any): void

getProtohost

  • getProtohost(url: string): string

gettype

  • gettype(obj: any): any

Private matchLayer

  • matchLayer(layer: any, path: string): any

mergeParams

  • mergeParams(params: any, parent: any): any

restore

  • restore(fn: Function, obj: any): (Anonymous function)

sendOptionsResponse

wrap

  • wrap(old: any, fn: any): proxy

Generated using TypeDoc