public class HttpMethod extends java.lang.Object implements java.lang.Comparable<HttpMethod>
Modifier and Type | Field and Description |
---|---|
static HttpMethod |
CONNECT
该规范保留方法名称CONNECT,以便与可以动态切换为隧道的代理一起使用
|
static HttpMethod |
DELETE
DELETE方法请求源服务器删除由Request-URI标识的资源。
|
static HttpMethod |
GET
GET方法意味着检索任何信息(以实体的形式)由Request-URI标识。
|
static HttpMethod |
HEAD
HEAD方法与GET相同,只是服务器不能在响应中返回消息体。
|
static HttpMethod |
OPTIONS
OPTIONS方法代表请求关于Request-URI所标识的请求/响应链上可用的通信选项的信息。
|
static HttpMethod |
PATCH
PATCH方法请求将请求实体中描述的一组更改应用于由Request-URI标识的资源。
|
static HttpMethod |
POST
POST方法用于请求源服务器接受请求中包含的实体作为Request-Line中Request-URI标识的资源的新下属。
|
static HttpMethod |
PUT
PUT方法要求封闭实体存储在提供的Request-URI下。
|
static HttpMethod |
TRACE
TRACE方法用于调用请求消息的远程应用层回送。
|
Constructor and Description |
---|
HttpMethod(java.lang.String name)
用指定的名称创建一个新的HTTP方法。
|
Modifier and Type | Method and Description |
---|---|
AsciiString |
asciiName()
返回此方法的名称。
|
int |
compareTo(HttpMethod o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
name()
返回此方法的名称。
|
java.lang.String |
toString() |
static HttpMethod |
valueOf(java.lang.String name)
返回由指定名称表示的 HttpMethod 。
|
public static final HttpMethod OPTIONS
public static final HttpMethod GET
public static final HttpMethod HEAD
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod PATCH
public static final HttpMethod DELETE
public static final HttpMethod TRACE
public static final HttpMethod CONNECT
public static HttpMethod valueOf(java.lang.String name)
public java.lang.String name()
public AsciiString asciiName()
public int hashCode()
hashCode
在类
java.lang.Object
public boolean equals(java.lang.Object o)
equals
在课程
java.lang.Object
public java.lang.String toString()
toString
java.lang.Object
public int compareTo(HttpMethod o)
compareTo
在界面
java.lang.Comparable<HttpMethod>
Copyright © 2008–2018 The Netty Project. All rights reserved.