Options
All
  • Public
  • Public/Protected
  • All
Menu

A handler for offline requests. The handler is only called when a rule with the same name matches a request. The handler may still refuse to handle the request.

Hierarchy

  • OfflineHandler

Implemented by

Index

Properties

Methods

Properties

name

name: string

The name of the handler.

Methods

handle

  • Applies a routing rule to the given request. The rule will have a name matching the name passed in to OfflineRouter.addHandler() and the rule pattern will match the request.

    Parameters

    Returns boolean

    Whether the rule successfully handled the request.