of
Returns the method named name, compared case-sensitively; CONNECT and TRACE are accepted here and refused by HttpRequest.
Return
the constant for one of the seven exact names, a new instance for any other RFC 9110 token, or a failure holding an IllegalArgumentException with the constant message Method is not an RFC 9110 token, which never echoes name.
Parameters
name
the method token.