Protected
configProtected
rulesThe email message to match against the rules.
The first matching rule or null if no rule matches the message.
Adds a new route rule to the router's list of rules. The first added rule will be checked first.
The matcher to use for this rule. Can be a string, a regular expression, or a function.
The handler to use for this rule. Can be a function handler or a middleware.
The router itself.
Processes the email message and returns the result of the matching route handle.
The email context object.
Optional
next: ((c) => Promise<void>)The next middleware function.
An object containing the matched route handle or null if no match was found.
Generated using TypeDoc
Matches the given email message against the defined rules and returns the first matching rule.