Closed zenekron closed 3 years ago
Closes by #332.
There should have been open member Other(String) to support further methods, that can be added to IANA later, or ones that can be used privately by applications. Many HTTP servers just use String in place of method
I agree
TL;DR: the
Method
enum only supports fraction of all the registered HTTP methods.EDIT: I've currently opened the PR #332 to resolve this issue.
About Mozilla's documentation
Mozilla's HTTP request methods only contains information about the methods specified in RFC 7231 and RFC 5789. While these are the most commonly used ones, they only account for 9 out of the 39 (~23%) currently registered HTTP methods.
What is a Registered HTTP Method?
RFC 7231 states the following:
Essentially a registered HTTP method is a method that has gone through the process of being added to IANA's HTTP Method Registry.