Enum Class HttpMethod
- 所有已实现的接口:
Serializable,Comparable<HttpMethod>,Constable
HttpMethod class.
- 版本:
- 0.3.6
- 作者:
- scx567888
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明CONNECT 方法建立一个到由目标资源标识的服务器的隧道。DELETE 方法删除指定的资源。GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。HEAD 方法请求一个与 GET 请求的响应相同的响应,但没有响应体。OPTIONS 方法用于描述目标资源的通信选项。PATCH 方法用于对资源应用部分修改。POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。PUT 方法用有效载荷请求替换目标资源的所有当前表示。TRACE 方法沿着到目标资源的路径执行一个消息环回测试。 -
方法概要
修饰符和类型方法说明static HttpMethodReturns the enum constant of this class with the specified name.static HttpMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.io.vertx.core.http.HttpMethod对应的 vertx 的 HttpMethod, 方便在 vertx 应用中直接使用 .
-
枚举常量详细资料
-
GET
GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。 -
HEAD
HEAD 方法请求一个与 GET 请求的响应相同的响应,但没有响应体。 -
POST
POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。 -
PUT
PUT 方法用有效载荷请求替换目标资源的所有当前表示。 -
DELETE
DELETE 方法删除指定的资源。 -
CONNECT
CONNECT 方法建立一个到由目标资源标识的服务器的隧道。 -
OPTIONS
OPTIONS 方法用于描述目标资源的通信选项。 -
TRACE
TRACE 方法沿着到目标资源的路径执行一个消息环回测试。 -
PATCH
PATCH 方法用于对资源应用部分修改。
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
vertxMethod
public io.vertx.core.http.HttpMethod vertxMethod()对应的 vertx 的 HttpMethod, 方便在 vertx 应用中直接使用 .- 返回:
- a
HttpMethodobject
-