Enum Class HttpMethod

java.lang.Object
java.lang.Enum<HttpMethod>
cool.scx.enumeration.HttpMethod
所有已实现的接口:
Serializable, Comparable<HttpMethod>, Constable

public enum HttpMethod extends Enum<HttpMethod>

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 HttpMethod
    Returns the enum constant of this class with the specified name.
    static HttpMethod[]
    Returns an array containing the constants of this enum class, in the order they are declared.
    io.vertx.core.http.HttpMethod
    对应的 vertx 的 HttpMethod, 方便在 vertx 应用中直接使用 .

    从类继承的方法 java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 枚举常量详细资料

    • GET

      public static final HttpMethod GET
      GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。
    • POST

      public static final HttpMethod POST
      POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。
    • PUT

      public static final HttpMethod PUT
      PUT 方法用有效载荷请求替换目标资源的所有当前表示。
    • DELETE

      public static final HttpMethod DELETE
      DELETE 方法删除指定的资源。
    • CONNECT

      public static final HttpMethod CONNECT
      CONNECT 方法建立一个到由目标资源标识的服务器的隧道。
    • OPTIONS

      public static final HttpMethod OPTIONS
      OPTIONS 方法用于描述目标资源的通信选项。
    • TRACE

      public static final HttpMethod TRACE
      TRACE 方法沿着到目标资源的路径执行一个消息环回测试。
    • PATCH

      public static final HttpMethod PATCH
      PATCH 方法用于对资源应用部分修改。
  • 方法详细资料

    • values

      public static HttpMethod[] 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

      public static HttpMethod valueOf(String name)
      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 name
      NullPointerException - 如果参数为空值
    • vertxMethod

      public io.vertx.core.http.HttpMethod vertxMethod()
      对应的 vertx 的 HttpMethod, 方便在 vertx 应用中直接使用 .
      返回:
      a HttpMethod object