Package | Description |
---|---|
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.
|
io.netty.handler.codec.http.websocketx.extensions |
Encoder, decoder, handshakers to handle
WebSocket Extensions.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpResponse
Combination of a
HttpResponse and FullHttpMessage . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
class |
DefaultHttpResponse
The default
HttpResponse implementation. |
Modifier and Type | Method and Description |
---|---|
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 |
DefaultHttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
HttpResponse.setProtocolVersion(HttpVersion version) |
HttpResponse |
DefaultHttpResponse.setStatus(HttpResponseStatus status) |
HttpResponse |
HttpResponse.setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse . |
Modifier and Type | Method and Description |
---|---|
protected HttpContentEncoder.Result |
HttpContentCompressor.beginEncode(HttpResponse httpResponse,
String acceptEncoding) |
protected abstract HttpContentEncoder.Result |
HttpContentEncoder.beginEncode(HttpResponse httpResponse,
String acceptEncoding)
Prepare to encode the HTTP message content.
|
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) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
WebSocketClientHandshakeException.response()
Returns a
response if exception occurs during response validation otherwise null . |
Modifier and Type | Method and Description |
---|---|
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) }. |
Constructor and Description |
---|
WebSocketClientHandshakeException(String message,
HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
HttpConversionUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the response data.
|
Copyright © 2008–2024 The Netty Project. All rights reserved.