Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Router

Index

Constructors

constructor

  • Parameters

    Returns Router

Properties

Private deleteRouteRecognizer

deleteRouteRecognizer: any

Private getRouteRecognizer

getRouteRecognizer: any

Private handlers

handlers: any

Private patchRouteRecognizer

patchRouteRecognizer: any

Private postRouteRecognizer

postRouteRecognizer: any

Private putRouteRecognizer

putRouteRecognizer: any

Methods

delete

  • Parameters

    Returns this

get

  • Parameters

    Returns this

patch

  • Parameters

    Returns this

post

  • Parameters

    Returns this

put

  • Parameters

    Returns this

Private registerHandler

  • registerHandler(routeRecognizer: any, method: any, url: any, handler: any): any
  • TODO: This method could use some refactoring. There is conflict of interest between keeping clean separation of test and handle method Test method only returns boolean indicating if request can be handled, and handle method has opportunity to modify response and return promise of it. In the case of the router with route-recognizer where handlers are associated with routes, this already guarantees that only one handler is selected and makes the test method feel complicated Will leave as is an investigate cleaner ways at later time.

    Parameters

    • routeRecognizer: any
    • method: any
    • url: any
    • handler: any

    Returns any

Generated using TypeDoc