程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
FullHttpResponse
Combination of a
HttpResponse and FullHttpMessage . |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
class |
DefaultHttpResponse
The default
HttpResponse implementation. |
限定符和类型 | 方法和说明 |
---|---|
HttpResponse |
HttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
DefaultHttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
HttpResponse.setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse . |
HttpResponse |
DefaultHttpResponse.setStatus(HttpResponseStatus status) |
限定符和类型 | 方法和说明 |
---|---|
protected abstract HttpContentEncoder.Result |
HttpContentEncoder.beginEncode(HttpResponse headers,
java.lang.String acceptEncoding)
Prepare to encode the HTTP message content.
|
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)
Returns true if the server switched to a different protocol than HTTP/1.0 or HTTP/1.1, e.g.
|
protected void |
HttpResponseEncoder.sanitizeHeadersBeforeEncode(HttpResponse msg,
boolean isAlwaysEmpty) |
限定符和类型 | 方法和说明 |
---|---|
ChannelFuture |
WebSocketClientHandshaker.processHandshake(Channel channel,
HttpResponse response)
Process the opening handshake initiated by
WebSocketClientHandshaker.handshake(io.netty.channel.Channel) }. |
ChannelFuture |
WebSocketClientHandshaker.processHandshake(Channel channel,
HttpResponse response,
ChannelPromise promise)
Process the opening handshake initiated by
WebSocketClientHandshaker.handshake(io.netty.channel.Channel) }. |