toString method

  1. @override
String toString()
override

String representation

Implementation

@override
String toString() {
  var s = 'unknown';
  switch (found) {
    case foundNothing:
      s = 'method not supported';
      break;
    case foundMethod:
      s = 'path not supported';
      break;
    case foundHandler:
      s = 'no result';
      break;
    case foundStaticHandler:
      s = 'no resource';
      break;
  }
  return s;
}