Dispatches the route handlers matched within the Routing Table for this instance for the specified method and path.
Syntax
var instance = new Router();
var value; // Type: Boolean
// Parameters
var method; // Type: String
var path; // Type: String
var callback; // Type: Any
value = instance.dispatch(method, path, callback);
function dispatch(
: String,
: String,
: Any
) : Boolean;
Parameters
- method
- Method to invoke handlers for within the Routing Table
- path
- Path within the Routing Table to match
- callback
- Invoked once all route handlers have been called.
Browser Compatibility
See Also