程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.http . |
io.netty.handler.codec.http.cors |
This package contains Cross Origin Resource Sharing (CORS) related classes.
|
io.netty.handler.codec.http2 |
Benchmarks for
io.netty.handler.codec.http2 . |
io.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
限定符和类型 | 字段和说明 |
---|---|
static HttpMethod |
HttpMethod.CONNECT
This specification reserves the method name CONNECT for use with a proxy that can dynamically
switch to being a tunnel
|
static HttpMethod |
HttpMethod.DELETE
The DELETE method requests that the origin server delete the resource identified by the
Request-URI.
|
static HttpMethod |
HttpMethod.GET
The GET method means retrieve whatever information (in the form of an entity) is identified
by the Request-URI.
|
static HttpMethod |
HttpMethod.HEAD
The HEAD method is identical to GET except that the server MUST NOT return a message-body
in the response.
|
static HttpMethod |
HttpMethod.OPTIONS
The OPTIONS method represents a request for information about the communication options
available on the request/response chain identified by the Request-URI.
|
static HttpMethod |
HttpMethod.PATCH
The PATCH method requests that a set of changes described in the
request entity be applied to the resource identified by the Request-URI.
|
static HttpMethod |
HttpMethod.POST
The POST method is used to request that the origin server accept the entity enclosed in the
request as a new subordinate of the resource identified by the Request-URI in the
Request-Line.
|
static HttpMethod |
HttpMethod.PUT
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
|
static HttpMethod |
HttpMethod.TRACE
The TRACE method is used to invoke a remote, application-layer loop- back of the request
message.
|
限定符和类型 | 方法和说明 |
---|---|
HttpMethod |
HttpRequest.getMethod()
已过时。
Use
HttpRequest.method() instead. |
HttpMethod |
DefaultHttpRequest.getMethod()
已过时。
|
HttpMethod |
HttpRequest.method()
Returns the
HttpMethod of this HttpRequest . |
HttpMethod |
DefaultHttpRequest.method() |
static HttpMethod |
HttpMethod.valueOf(java.lang.String name)
Returns the
HttpMethod represented by the specified name. |
限定符和类型 | 方法和说明 |
---|---|
int |
HttpMethod.compareTo(HttpMethod o) |
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
FullHttpRequest |
FullHttpRequest.setMethod(HttpMethod method) |
HttpRequest |
DefaultHttpRequest.setMethod(HttpMethod method) |
FullHttpRequest |
DefaultFullHttpRequest.setMethod(HttpMethod method) |
构造器和说明 |
---|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri)
Create a full HTTP response with the given HTTP version, method, and URI.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
boolean validateHeaders)
已过时。
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content)
Create a full HTTP response with the given HTTP version, method, URI, and contents.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content,
boolean validateHeaders)
已过时。
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content,
HttpHeadersFactory headersFactory,
HttpHeadersFactory trailersFactory)
Create a full HTTP response with the given HTTP version, method, URI, contents,
and factories for creating headers and trailers.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content,
HttpHeaders headers,
HttpHeaders trailingHeader)
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri)
Creates a new instance.
|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
boolean validateHeaders)
已过时。
Prefer the
DefaultHttpRequest.DefaultHttpRequest(HttpVersion, HttpMethod, String) constructor instead,
to always have header validation enabled. |
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
HttpHeaders headers)
Creates a new instance.
|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
HttpHeadersFactory headersFactory)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<HttpMethod> |
CorsConfig.allowedRequestMethods()
Returns the allowed set of Request Methods.
|
限定符和类型 | 方法和说明 |
---|---|
CorsConfigBuilder |
CorsConfigBuilder.allowedRequestMethods(HttpMethod... methods)
Specifies the allowed set of HTTP Request Methods that should be returned in the
CORS 'Access-Control-Request-Method' response header.
|
CorsConfig.Builder |
CorsConfig.Builder.allowedRequestMethods(HttpMethod... methods)
已过时。
|
限定符和类型 | 字段和说明 |
---|---|
static HttpMethod |
HttpConversionUtil.OUT_OF_MESSAGE_SEQUENCE_METHOD
This will be the method used for
HttpRequest objects generated out of the HTTP message flow defined in [RFC 7540], Section 8.1 |
限定符和类型 | 字段和说明 |
---|---|
static HttpMethod |
RtspMethods.ANNOUNCE
The ANNOUNCE posts the description of a presentation or media object
identified by the request URL to a server, or updates the client-side
session description in real-time.
|
static HttpMethod |
RtspMethods.DESCRIBE
The DESCRIBE getMethod retrieves the description of a presentation or
media object identified by the request URL from a server.
|
static HttpMethod |
RtspMethods.GET_PARAMETER
The GET_PARAMETER request retrieves the value of a parameter of a
presentation or stream specified in the URI.
|
static HttpMethod |
RtspMethods.OPTIONS
The OPTIONS getMethod represents a request for information about the communication options
available on the request/response chain identified by the Request-URI.
|
static HttpMethod |
RtspMethods.PAUSE
The PAUSE request causes the stream delivery to be interrupted
(halted) temporarily.
|
static HttpMethod |
RtspMethods.PLAY
The PLAY getMethod tells the server to start sending data via the
mechanism specified in SETUP.
|
static HttpMethod |
RtspMethods.RECORD
The RECORD getMethod initiates recording a range of media data according to
the presentation description.
|
static HttpMethod |
RtspMethods.REDIRECT
The REDIRECT request informs the client that it must connect to another
server location.
|
static HttpMethod |
RtspMethods.SET_PARAMETER
The SET_PARAMETER requests to set the value of a parameter for a
presentation or stream specified by the URI.
|
static HttpMethod |
RtspMethods.SETUP
The SETUP request for a URI specifies the transport mechanism to be
used for the streamed media.
|
static HttpMethod |
RtspMethods.TEARDOWN
The TEARDOWN request stops the stream delivery for the given URI,
freeing the resources associated with it.
|
限定符和类型 | 方法和说明 |
---|---|
static HttpMethod |
RtspMethods.valueOf(java.lang.String name)
Returns the
HttpMethod represented by the specified name. |