isSafeHttpMethod function

bool isSafeHttpMethod(
  1. String method
)

True, if the method given is specified in HTTP 1.1, and thus, MUST be supported by all HTTP servers.

This method does a case-insensitive comparison.

Implementation

bool isSafeHttpMethod(String method) =>
    safeHttpMethods.contains(method.toUpperCase());