Hierarchy

  • Router
    • default

Constructors

Properties

_settings: Settings = ...
_view?: Engine
acl: ShortHandRouteT<default, Response, default>
bind: ShortHandRouteT<default, Response, default>
catchers: ErrorHandlerT<default, Response>[] = []
checkout: ShortHandRouteT<default, Response, default>
connect: ShortHandRouteT<default, Response, default>
copy: ShortHandRouteT<default, Response, default>
delete: ShortHandRouteT<default, Response, default>
get: ShortHandRouteT<default, Response, default>
head: ShortHandRouteT<default, Response, default>
link: ShortHandRouteT<default, Response, default>
lock: ShortHandRouteT<default, Response, default>
m-search: ShortHandRouteT<default, Response, default>
merge: ShortHandRouteT<default, Response, default>
middlewares: HandlerT<default, Response>[] = []
mkactivity: ShortHandRouteT<default, Response, default>
mkcalendar: ShortHandRouteT<default, Response, default>
mkcol: ShortHandRouteT<default, Response, default>
move: ShortHandRouteT<default, Response, default>
notify: ShortHandRouteT<default, Response, default>
options: ShortHandRouteT<default, Response, default>
paramHandlers: ParamHandlerI<default, Response> = {}
patch: ShortHandRouteT<default, Response, default>
post: ShortHandRouteT<default, Response, default>
prefix: string = "/"
pri: ShortHandRouteT<default, Response, default>
propfind: ShortHandRouteT<default, Response, default>
proppatch: ShortHandRouteT<default, Response, default>
purge: ShortHandRouteT<default, Response, default>
put: ShortHandRouteT<default, Response, default>
rebind: ShortHandRouteT<default, Response, default>
report: ShortHandRouteT<default, Response, default>
search: ShortHandRouteT<default, Response, default>
source: ShortHandRouteT<default, Response, default>
subscribe: ShortHandRouteT<default, Response, default>
trace: ShortHandRouteT<default, Response, default>
tree: Node<default, Response> = ...
unbind: ShortHandRouteT<default, Response, default>
unlink: ShortHandRouteT<default, Response, default>
unlock: ShortHandRouteT<default, Response, default>
unsubscribe: ShortHandRouteT<default, Response, default>
static: any = serveStatic

Methods

  • Parameters

    • path: string
    • Optional options: null | false | OptionsI | HandlerT<default, Response> | HandlersT<default, Response>
    • Rest ...handlers: HandlersT<default, Response>

    Returns default

  • Parameters

    • Rest ...handlers: ErrorHandlersT<default, Response>

    Returns default

  • Parameters

    • error: Error
    • request: default
    • response: Response

    Returns void

  • Handle view

    Parameters

    • extension: string

      view template file extension

    • path: string

      the directory containing view templates

    • handler: (() => void)
        • (): void
        • Returns void

    Returns default

  • Parameters

    • method: MethodT
    • path: string

    Returns HandlersResultT<default, Response>

  • Parameters

    • error: Error
    • req: default
    • res: Response
    • catchers: ErrorHandlerT<default, Response>[] = []

    Returns NextT

  • Parameters

    • req: default
    • res: Response
    • method: MethodT
    • allowHeader: string
    • handlers: HandlerT<default, Response>[] = []

    Returns NextT

  • Parameters

    • options: string | OptionsI<IncomingMessage, ServerResponse<IncomingMessage>>

    Returns Promise<InjectResultI<default, Response>>

  • Parameters

    • request: default
    • response: Response

    Returns void

  • Parameters

    • method: MethodT | MethodT[]
    • path: string
    • options: undefined | null | false | OptionsI | HandlerT<default, Response> | HandlersT<default, Response> = {}
    • Rest ...handlers: HandlersT<default, Response>

    Returns default

  • Parameters

    • name: string
    • handler: HandlerT<default, Response>

    Returns default

  • Returns visual representation of tree nodes

    Returns string

  • Parameters

    • path: string

    Returns RouteMethodsT<default, Response>

  • Returns RoutesT<default, Response>

  • Parameters

    • Optional callback: Callback

    Returns Server

  • Parameters

    • error: Error
    • request: default
    • response: Response

    Returns void

  • Parameters

    • Rest ...handlers: MiddlewaresT<default, Response>

    Returns default

Generated using TypeDoc