程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.http . |
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 HttpVersion |
HttpVersion.HTTP_1_0
HTTP/1.0
|
static HttpVersion |
HttpVersion.HTTP_1_1
HTTP/1.1
|
限定符和类型 | 方法和说明 |
---|---|
HttpVersion |
HttpMessage.getProtocolVersion()
已过时。
Use
HttpMessage.protocolVersion() instead. |
HttpVersion |
DefaultHttpMessage.getProtocolVersion()
已过时。
|
HttpVersion |
HttpMessage.protocolVersion()
Returns the protocol version of this
HttpMessage |
HttpVersion |
DefaultHttpMessage.protocolVersion() |
static HttpVersion |
HttpVersion.valueOf(java.lang.String text)
Returns an existing or new
HttpVersion instance which matches to
the specified protocol version string. |
限定符和类型 | 方法和说明 |
---|---|
int |
HttpVersion.compareTo(HttpVersion o) |
static void |
HttpUtil.setKeepAlive(HttpHeaders h,
HttpVersion httpVersion,
boolean keepAlive)
Sets the value of the
"Connection" header depending on the
protocol version of the specified message. |
HttpResponse |
HttpResponse.setProtocolVersion(HttpVersion version) |
HttpRequest |
HttpRequest.setProtocolVersion(HttpVersion version) |
HttpMessage |
HttpMessage.setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
FullHttpResponse |
FullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
FullHttpRequest.setProtocolVersion(HttpVersion version) |
HttpResponse |
DefaultHttpResponse.setProtocolVersion(HttpVersion version) |
HttpRequest |
DefaultHttpRequest.setProtocolVersion(HttpVersion version) |
HttpMessage |
DefaultHttpMessage.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
DefaultFullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
DefaultFullHttpRequest.setProtocolVersion(HttpVersion version) |
构造器和说明 |
---|
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.
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status)
Create an empty HTTP response with the given HTTP version and status.
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders)
已过时。
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders,
boolean singleFieldHeaders)
已过时。
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content)
Create an HTTP response with the given HTTP version, status, and contents.
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
boolean validateHeaders)
已过时。
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
boolean validateHeaders,
boolean singleFieldHeaders)
已过时。
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
HttpHeadersFactory headersFactory,
HttpHeadersFactory trailersFactory)
Create an HTTP response with the given HTTP version, status, contents,
and with headers and trailers created by the given header factories.
|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
HttpHeaders headers,
HttpHeaders trailingHeaders)
Create an HTTP response with the given HTTP version, status, contents, headers and trailers.
|
DefaultHttpMessage(HttpVersion version)
Creates a new instance.
|
DefaultHttpMessage(HttpVersion version,
boolean validateHeaders,
boolean singleFieldHeaders)
已过时。
Use the
DefaultHttpMessage.DefaultHttpMessage(HttpVersion, HttpHeadersFactory) constructor instead,
ideally using the DefaultHttpHeadersFactory.headersFactory() ,
or a factory that otherwise has validation enabled. |
DefaultHttpMessage(HttpVersion version,
HttpHeaders headers)
Creates a new instance.
|
DefaultHttpMessage(HttpVersion version,
HttpHeadersFactory headersFactory)
Creates a new instance.
|
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.
|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status)
Creates a new instance.
|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders)
已过时。
Use the
DefaultHttpResponse.DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor
instead. |
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders,
boolean singleFieldHeaders)
已过时。
Use the
DefaultHttpResponse.DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor
instead. |
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status,
HttpHeaders headers)
Creates a new instance.
|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status,
HttpHeadersFactory headersFactory)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
static void |
HttpConversionUtil.addHttp2ToHttpHeaders(int streamId,
Http2Headers inputHeaders,
HttpHeaders outputHeaders,
HttpVersion httpVersion,
boolean isTrailer,
boolean isRequest)
Translate and add HTTP/2 headers to HTTP/1.x headers.
|
限定符和类型 | 字段和说明 |
---|---|
static HttpVersion |
RtspVersions.RTSP_1_0
RTSP/1.0
|
限定符和类型 | 方法和说明 |
---|---|
static HttpVersion |
RtspVersions.valueOf(java.lang.String text)
Returns an existing or new
HttpVersion instance which matches to
the specified RTSP version string. |