on method
Implementation
void on(String route, Function(HttpRequest request) handler) {
if (type != ConnectMeType.http) throw Exception('Unable to add routes for non HTTP server.');
if (!RegExp('^/.*').hasMatch(route)) route = '/$route';
_routes[route] = handler;
}