Package | Description |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpRequest
Combine the
HttpRequest and FullHttpMessage , so the request is a complete HTTP
request. |
interface |
FullHttpResponse
Combination of a
HttpResponse and FullHttpMessage . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpRequest
Default implementation of
FullHttpRequest . |
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
private static class |
HttpObjectAggregator.AggregatedFullHttpMessage |
private static class |
HttpObjectAggregator.AggregatedFullHttpRequest |
private static class |
HttpObjectAggregator.AggregatedFullHttpResponse |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
HttpObjectAggregator.beginAggregation(HttpMessage start,
ByteBuf content) |
FullHttpMessage |
FullHttpMessage.copy() |
abstract FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.copy() |
FullHttpMessage |
FullHttpMessage.duplicate() |
abstract FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.duplicate() |
FullHttpMessage |
FullHttpMessage.replace(ByteBuf content) |
FullHttpMessage |
FullHttpMessage.retain() |
FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.retain() |
FullHttpMessage |
FullHttpMessage.retain(int increment) |
FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.retain(int increment) |
FullHttpMessage |
FullHttpMessage.retainedDuplicate() |
abstract FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.retainedDuplicate() |
FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.setProtocolVersion(HttpVersion version) |
FullHttpMessage |
FullHttpMessage.touch() |
FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.touch() |
FullHttpMessage |
FullHttpMessage.touch(java.lang.Object hint) |
FullHttpMessage |
HttpObjectAggregator.AggregatedFullHttpMessage.touch(java.lang.Object hint) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpObjectAggregator.aggregate(FullHttpMessage aggregated,
HttpContent content) |
private static void |
HttpMessageUtil.appendFullCommon(java.lang.StringBuilder buf,
FullHttpMessage msg) |
protected void |
HttpObjectAggregator.finishAggregation(FullHttpMessage aggregated) |
Modifier and Type | Class and Description |
---|---|
private static class |
HttpPostRequestEncoder.WrappedFullHttpRequest |
Modifier and Type | Method and Description |
---|---|
FullHttpMessage |
InboundHttp2ToHttpAdapter.ImmediateSendDetector.copyIfNeeded(FullHttpMessage msg)
Determine if a copy must be made after an immediate send happens.
|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.getMessage(Http2Stream stream)
Get the
FullHttpMessage associated with stream . |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream,
Http2Headers headers,
boolean validateHttpHeaders,
ByteBufAllocator alloc)
Create a new
FullHttpMessage based upon the current connection parameters |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.processHeadersBegin(ChannelHandlerContext ctx,
Http2Stream stream,
Http2Headers headers,
boolean endOfStream,
boolean allowAppend,
boolean appendToTrailer)
Provides translation between HTTP/2 and HTTP header objects while ensuring the stream
is in a valid state for additional headers.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpConversionUtil.addHttp2ToHttpHeaders(int streamId,
Http2Headers sourceHeaders,
FullHttpMessage destinationMessage,
boolean addToTrailer)
Translate and add HTTP/2 headers to HTTP/1.x headers.
|
FullHttpMessage |
InboundHttp2ToHttpAdapter.ImmediateSendDetector.copyIfNeeded(FullHttpMessage msg)
Determine if a copy must be made after an immediate send happens.
|
protected void |
InboundHttp2ToHttpAdapter.fireChannelRead(ChannelHandlerContext ctx,
FullHttpMessage msg,
boolean release,
Http2Stream stream)
Set final headers and fire a channel read event
|
boolean |
InboundHttp2ToHttpAdapter.ImmediateSendDetector.mustSendImmediately(FullHttpMessage msg)
Determine if the response should be sent immediately, or wait for the end of the stream
|
protected void |
InboundHttp2ToHttpAdapter.onRstStreamRead(Http2Stream stream,
FullHttpMessage msg)
Called if a
RST_STREAM is received but we have some data for that stream. |
private void |
InboundHttp2ToHttpAdapter.processHeadersEnd(ChannelHandlerContext ctx,
Http2Stream stream,
FullHttpMessage msg,
boolean endOfStream)
After HTTP/2 headers have been processed by
InboundHttp2ToHttpAdapter.processHeadersBegin(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http2.Http2Stream, io.netty.handler.codec.http2.Http2Headers, boolean, boolean, boolean) this method either
sends the result up the pipeline or retains the message for future processing. |
protected void |
InboundHttp2ToHttpAdapter.putMessage(Http2Stream stream,
FullHttpMessage message)
Make
message be the state associated with stream . |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,FullHttpMessage> |
SpdyHttpDecoder.messageMap |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
SpdyHttpDecoder.getMessage(int streamId) |
protected FullHttpMessage |
SpdyHttpDecoder.putMessage(int streamId,
FullHttpMessage message) |
protected FullHttpMessage |
SpdyHttpDecoder.removeMessage(int streamId) |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
SpdyHttpDecoder.putMessage(int streamId,
FullHttpMessage message) |
Constructor and Description |
---|
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
java.util.Map<java.lang.Integer,FullHttpMessage> messageMap)
Creates a new instance with the specified parameters.
|
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
java.util.Map<java.lang.Integer,FullHttpMessage> messageMap,
boolean validateHeaders)
Creates a new instance with the specified parameters.
|