isIdempotentHttpMethod function

bool isIdempotentHttpMethod(
  1. String method
)

True, if the method given is specified to be idempotent.

This method does a case-insensitive comparison.

Implementation

bool isIdempotentHttpMethod(String method) =>
    idempotentHttpMethods.contains(method.toUpperCase());