HttpMethod Enum
- java.
lang. Object - java.
lang. Enum - com.
azure. core. http. HttpMethod
- com.
- java.
public enum HttpMethod
extends Enum<HttpMethod>
Represents the HTTP methods that can be used in a request.
This enum encapsulates the HTTP methods that can be used in a request, such as GET, PUT, POST, PATCH, DELETE, HEAD, OPTIONS, TRACE, and CONNECT.
This enum is useful when you want to specify the HTTP method of a request. For example, you can use it when creating an instance of HttpRequest.
Note: The HTTP methods are defined by the HTTP/1.1 specification (RFC 2616) and the HTTP/2 specification (RFC 7540).
Fields
CONNECT |
The HTTP CONNECT method. |
DELETE |
The HTTP DELETE method. |
GET |
The HTTP GET method. |
HEAD |
The HTTP HEAD method. |
OPTIONS |
The HTTP OPTIONS method. |
PATCH |
The HTTP PATCH method. |
POST |
The HTTP POST method. |
PUT |
The HTTP PUT method. |
TRACE |
The HTTP TRACE method. |
Methods inherited from java.lang.Enum
Methods inherited from java.lang.Object
Methods
valueOf(String name)
values()
Applies to
Azure SDK for Java