isHttpMethod function

bool isHttpMethod(
  1. String method
)

True, if the method given is an IANA registered HTTP method.

This method does a case-insensitive comparison.

Implementation

bool isHttpMethod(String method) => httpMethods.contains(method.toUpperCase());