程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.http . |
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.http.websocketx.extensions |
Encoder, decoder, handshakers to handle
WebSocket Extensions.
|
io.netty.handler.codec.http2 |
Benchmarks for
io.netty.handler.codec.http2 . |
限定符和类型 | 接口和说明 |
---|---|
interface |
FullHttpResponse
Combination of a
HttpResponse and FullHttpMessage . |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
class |
DefaultHttpResponse
The default
HttpResponse implementation. |
限定符和类型 | 方法和说明 |
---|---|
protected HttpResponse |
HttpServerExpectContinueHandler.acceptMessage(HttpRequest request)
Produces a
HttpResponse for HttpRequest s which define an expectation. |
protected HttpResponse |
HttpServerExpectContinueHandler.rejectResponse(HttpRequest request)
Returns the appropriate 4XX
HttpResponse for the given HttpRequest . |
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 httpResponse,
java.lang.String acceptEncoding)
Prepare to encode the HTTP message content.
|
protected HttpContentEncoder.Result |
HttpContentCompressor.beginEncode(HttpResponse httpResponse,
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) |
限定符和类型 | 方法和说明 |
---|---|
HttpResponse |
WebSocketClientHandshakeException.response()
Returns a
response if exception occurs during response validation otherwise null . |
限定符和类型 | 方法和说明 |
---|---|
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) }. |
构造器和说明 |
---|
WebSocketClientHandshakeException(java.lang.String message,
HttpResponse httpResponse) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
WebSocketServerExtensionHandler.onHttpResponseWrite(ChannelHandlerContext ctx,
HttpResponse response,
ChannelPromise promise)
This is a method exposed to perform fail-fast checks of user-defined http types.
|
限定符和类型 | 方法和说明 |
---|---|
static HttpResponse |
HttpConversionUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the response data.
|