3 ms·
HTTP 1.1 makes it clear that the method mechanism is extensible [1]. Method = "OPTIONS" | "GET"
by politician 5y ago
HTTP 1.1 makes it clear that the method mechanism is extensible [1].
Method = "OPTIONS"
| "GET"
| "HEAD"
| "POST"
| "PUT"
| "DELETE"
| "TRACE"
| "CONNECT"
| extension-method
extension-method = token
"The list of methods allowed by a resource can be specified in an Allow header field (section 14.7). The return code of the response always notifies the client whether a method is currently allowed on a resource, since the set of allowed methods can change dynamically. An origin server SHOULD return the status code 405 (Method Not Allowed) if the method is known by the origin server but not allowed for the requested resource, and 501 (Not Implemented) if the method is unrecognized or not implemented by the origin server. The methods GET and HEAD MUST be supported by all general-purpose servers. All other methods are OPTIONAL."
[1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1 https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5....