http_methods library
Library with all IANA registered HTTP methods.
Besides a list of all httpMethods this library also features utility functions such as:
- isHttpMethod to tell if a String is an HTTP method,,
- isSafeHttpMethod to tell if it is a safe HTTP 1.1 method supported by all HTTP servers, and,
- isIdempotentHttpMethod to tell if an HTTP method is idempotent.
Constants
-
httpMethods
→ const List<
String> - List of all IANA registered HTTP methods.
-
idempotentHttpMethods
→ const List<
String> - List of all HTTP methods specified as idempotent.
-
safeHttpMethods
→ const List<
String> - List of all HTTP 1.1 Methods.
Functions
-
isHttpMethod(
String method) → bool -
True, if the
method
given is an IANA registered HTTP method. -
isIdempotentHttpMethod(
String method) → bool -
True, if the
method
given is specified to be idempotent. -
isSafeHttpMethod(
String method) → bool -
True, if the
method
given is specified in HTTP 1.1, and thus, MUST be supported by all HTTP servers.