isIdempotent property

bool get isIdempotent

Check if the request method is idempotent

Implementation

bool get isIdempotent {
  return method == HttpMethod.get ||
      method == HttpMethod.head ||
      method == HttpMethod.options ||
      method == HttpMethod.put ||
      method == HttpMethod.delete;
}