http_methods library

Library with all IANA registered HTTP methods.

Besides a list of all httpMethods this library also features utility functions such as:

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.