软件包 | 描述 |
---|---|
io.netty.handler.codec.http |
编码器,解码器及其相关的HTTP消息类型。
|
io.netty.handler.codec.http.websocketx |
Web Socket数据帧的编码器,解码器,握手及其相关消息类型。
|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpResponse
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpResponse
FullHttpResponse 的默认实现。
|
class |
DefaultHttpResponse
默认的 HttpResponse 实现。
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpServerExpectContinueHandler.acceptMessage(HttpRequest request)
为 HttpRequest 生成一个HttpResponse ,它定义了一个期望值。
|
protected HttpResponse |
HttpServerExpectContinueHandler.rejectResponse(HttpRequest request)
返回相应4XX HttpResponse 对于给定HttpRequest 。
|
HttpResponse |
HttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
DefaultHttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
HttpResponse.setStatus(HttpResponseStatus status)
设置此 HttpResponse 的状态。
|
HttpResponse |
DefaultHttpResponse.setStatus(HttpResponseStatus status) |
Modifier and Type | Method and Description |
---|---|
protected abstract HttpContentEncoder.Result |
HttpContentEncoder.beginEncode(HttpResponse headers, java.lang.String acceptEncoding)
准备编码HTTP消息内容。
|
protected HttpContentEncoder.Result |
HttpContentCompressor.beginEncode(HttpResponse headers, java.lang.String acceptEncoding) |
protected void |
HttpResponseEncoder.encodeInitialLine(ByteBuf buf, HttpResponse response) |
protected boolean |
HttpResponseEncoder.isContentAlwaysEmpty(HttpResponse msg) |
protected boolean |
HttpObjectDecoder.isSwitchingToNonHttp1Protocol(HttpResponse msg)
如果服务器切换到不同于HTTP / 1.0或HTTP / 1.1的协议,则返回true,例如
|
protected void |
HttpResponseEncoder.sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty) |
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
WebSocketClientHandshaker.processHandshake(Channel channel, HttpResponse response)
|
ChannelFuture |
WebSocketClientHandshaker.processHandshake(Channel channel, HttpResponse response, ChannelPromise promise)
|
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
HttpConversionUtil.toHttpResponse(int streamId, Http2Headers http2Headers, boolean validateHttpHeaders)
创建一个新的对象来包含响应数据。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.