Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouteCollection

Hierarchy

Index

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly size

size: number

Static Set

Set: SetConstructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<Route>

add

  • add(value: Route): this
  • Parameters

    Returns this

clear

  • clear(): void
  • Returns void

delete

  • delete(value: Route): boolean
  • Parameters

    Returns boolean

entries

  • Returns an iterable of [v,v] pairs for every value v in the set.

    Returns IterableIterator<[Route, Route]>

forEach

  • forEach(callbackfn: (value: Route, value2: Route, set: Set<Route>) => void, thisArg?: any): void

handlerResponse

  • Parameters

    Returns Promise<void>

has

  • has(value: Route): boolean
  • Parameters

    Returns boolean

keys

  • keys(): IterableIterator<Route>
  • Despite its name, returns an iterable of the values in the set,

    Returns IterableIterator<Route>

match

  • 匹配路由

    Parameters

    • path: string

    Returns RouteCollection

toArray

  • 转换数组

    Returns Route[]

toJson

  • toJson(space?: number): string
  • 转换json

    Parameters

    • Default value space: number = 2

    Returns string

values

  • values(): IterableIterator<Route>
  • Returns an iterable of values in the set.

    Returns IterableIterator<Route>

Static create

  • Parameters

    • Rest ...routes: Route[]

    Returns RouteCollection

Generated using TypeDoc