Handler

Handler

Used to handle updates

Constructor

new Handler(object)

You can also use the other constructor styles stated in Callable.

Parameters:
Name Type Description
object object

Object or Handler name

Properties
Name Type Attributes Default Description
name string

Handler's name

callable Handler~callable

Handler's callable

requires Array.<Requirement> <optional>

Requirements

options object <optional>

Handler's options object

route String | RegExp <optional>

Route to handle

parser Requirement <optional>

Parser Requirement to use or null if none should be used

replaceable boolean <optional>
false

Determines if the Handler should be allowed to be replaced if a new Handler with the same name is registered.

Source:

Type Definitions

callable(done, processor)

Parameters:
Name Type Description
done Handler~done

Must be called from the callable when done

processor Processor

Processor object containing all relevant data

Source:
See:

done(erroropt, resultopt, dataopt)

Parameters:
Name Type Attributes Description
error object <optional>
result object <optional>
data object <optional>
Source: