toString method

  1. @override
String toString()
override

String representation

Implementation

@override
String toString() {
  var s = 'unknown';
  switch (found) {
    case foundResourceDoesNotSupportMethod:
      s = 'method not supported';
      break;
    case foundNoResource:
      s = 'resource not found';
      break;
    case foundHandler:
      s = 'no response';
      break;
    case foundStaticHandler:
      s = 'static resource not found';
      break;
  }
  return s;
}