methodString property

String get methodString

Implementation

String get methodString {
  switch (method) {
    case httpMethodGet:
      return 'GET';
    case httpMethodPost:
      return 'POST';
    case httpMethodPut:
      return 'PUT';
    case httpMethodDelete:
      return 'DELETE';
    case httpMethodPatch:
      return 'PATCH';
    default:
      return 'UNKNOWN';
  }
}