## Index

### Variables

- Router
- objectRegExp
- setPrototypeOf

### Functions

- appendMethods
- getProtohost
- gettype
- matchLayer
- mergeParams
- restore
- sendOptionsResponse
- wrap

## 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

- Defined in home/runner/work/opine/opine/src/router/index.ts:25

Initialize a new `Router` with the given `options`.

param
returns

  which is an callable function

### Const objectRegExp

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

- Defined in home/runner/work/opine/opine/src/router/index.ts:15

### Const setPrototypeOf

setPrototypeOf: any = Object.setPrototypeOf

- Defined in home/runner/work/opine/opine/src/router/index.ts:16

## Functions

### appendMethods

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

- - Defined in home/runner/work/opine/opine/src/router/index.ts:514

  #### Parameters

  - ##### list: any

  - ##### addition: any

  #### Returns void

### getProtohost

- getProtohost(url: string): string

- - Defined in home/runner/work/opine/opine/src/router/index.ts:524

  #### Parameters

  - ##### url: string

  #### Returns string

### gettype

- gettype(obj: any): any

- - Defined in home/runner/work/opine/opine/src/router/index.ts:539

  #### Parameters

  - ##### obj: any

  #### Returns any

### Private matchLayer

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

- - Defined in home/runner/work/opine/opine/src/router/index.ts:558

  Match path to a layer.

  #### Parameters

  - ##### layer: any

  - ##### path: string

  #### Returns any

### mergeParams

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

- - Defined in home/runner/work/opine/opine/src/router/index.ts:567

  #### Parameters

  - ##### params: any

  - ##### parent: any

  #### Returns any

### restore

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

- - Defined in home/runner/work/opine/opine/src/router/index.ts:606

  #### Parameters

  - ##### fn: Function

  - ##### obj: any

  #### Returns (Anonymous function)

### sendOptionsResponse

- sendOptionsResponse(res: OpineResponse, options: any, next: NextFunction): void

- - Defined in home/runner/work/opine/opine/src/router/index.ts:626

  #### Parameters

  - ##### res: OpineResponse

  - ##### options: any

  - ##### next: NextFunction

  #### Returns void

### wrap

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

- - Defined in home/runner/work/opine/opine/src/router/index.ts:641

  #### Parameters

  - ##### old: any

  - ##### fn: any

  #### Returns proxy

Generated using TypeDoc