toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MethodName.put:
      return 'PUT';
    case MethodName.get:
      return 'GET';
    case MethodName.delete:
      return 'DELETE';
    case MethodName.head:
      return 'HEAD';
  }
}