value property

String get value

The string representation of the HTTP method

Implementation

String get value {
  switch (this) {
    case HttpMethod.get:
      return 'GET';
    case HttpMethod.post:
      return 'POST';
    case HttpMethod.put:
      return 'PUT';
    case HttpMethod.delete:
      return 'DELETE';
  }
}