Package | Description |
---|---|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultHttp2Headers |
class |
EmptyHttp2Headers |
Modifier and Type | Method and Description |
---|---|
Http2Headers |
EmptyHttp2Headers.add(AsciiString name,
AsciiString... values) |
Http2Headers |
Http2Headers.add(AsciiString name,
AsciiString... values) |
Http2Headers |
DefaultHttp2Headers.add(AsciiString name,
AsciiString... values) |
Http2Headers |
EmptyHttp2Headers.add(AsciiString name,
AsciiString value) |
Http2Headers |
Http2Headers.add(AsciiString name,
AsciiString value) |
Http2Headers |
DefaultHttp2Headers.add(AsciiString name,
AsciiString value) |
Http2Headers |
EmptyHttp2Headers.add(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
Http2Headers.add(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
DefaultHttp2Headers.add(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
EmptyHttp2Headers.add(BinaryHeaders headers) |
Http2Headers |
Http2Headers.add(BinaryHeaders headers) |
Http2Headers |
DefaultHttp2Headers.add(BinaryHeaders headers) |
Http2Headers |
EmptyHttp2Headers.addBoolean(AsciiString name,
boolean value) |
Http2Headers |
Http2Headers.addBoolean(AsciiString name,
boolean value) |
Http2Headers |
DefaultHttp2Headers.addBoolean(AsciiString name,
boolean value) |
Http2Headers |
EmptyHttp2Headers.addByte(AsciiString name,
byte value) |
Http2Headers |
Http2Headers.addByte(AsciiString name,
byte value) |
Http2Headers |
DefaultHttp2Headers.addByte(AsciiString name,
byte value) |
Http2Headers |
EmptyHttp2Headers.addChar(AsciiString name,
char value) |
Http2Headers |
Http2Headers.addChar(AsciiString name,
char value) |
Http2Headers |
DefaultHttp2Headers.addChar(AsciiString name,
char value) |
Http2Headers |
EmptyHttp2Headers.addDouble(AsciiString name,
double value) |
Http2Headers |
Http2Headers.addDouble(AsciiString name,
double value) |
Http2Headers |
DefaultHttp2Headers.addDouble(AsciiString name,
double value) |
Http2Headers |
EmptyHttp2Headers.addFloat(AsciiString name,
float value) |
Http2Headers |
Http2Headers.addFloat(AsciiString name,
float value) |
Http2Headers |
DefaultHttp2Headers.addFloat(AsciiString name,
float value) |
Http2Headers |
EmptyHttp2Headers.addInt(AsciiString name,
int value) |
Http2Headers |
Http2Headers.addInt(AsciiString name,
int value) |
Http2Headers |
DefaultHttp2Headers.addInt(AsciiString name,
int value) |
Http2Headers |
EmptyHttp2Headers.addLong(AsciiString name,
long value) |
Http2Headers |
Http2Headers.addLong(AsciiString name,
long value) |
Http2Headers |
DefaultHttp2Headers.addLong(AsciiString name,
long value) |
Http2Headers |
EmptyHttp2Headers.addObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
Http2Headers.addObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
DefaultHttp2Headers.addObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
EmptyHttp2Headers.addObject(AsciiString name,
Object... values) |
Http2Headers |
Http2Headers.addObject(AsciiString name,
Object... values) |
Http2Headers |
DefaultHttp2Headers.addObject(AsciiString name,
Object... values) |
Http2Headers |
EmptyHttp2Headers.addObject(AsciiString name,
Object value) |
Http2Headers |
Http2Headers.addObject(AsciiString name,
Object value) |
Http2Headers |
DefaultHttp2Headers.addObject(AsciiString name,
Object value) |
Http2Headers |
EmptyHttp2Headers.addShort(AsciiString name,
short value) |
Http2Headers |
Http2Headers.addShort(AsciiString name,
short value) |
Http2Headers |
DefaultHttp2Headers.addShort(AsciiString name,
short value) |
Http2Headers |
EmptyHttp2Headers.addTimeMillis(AsciiString name,
long value) |
Http2Headers |
Http2Headers.addTimeMillis(AsciiString name,
long value) |
Http2Headers |
DefaultHttp2Headers.addTimeMillis(AsciiString name,
long value) |
Http2Headers |
Http2Headers.authority(AsciiString value)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
Http2Headers |
DefaultHttp2Headers.authority(AsciiString value) |
Http2Headers |
EmptyHttp2Headers.clear() |
Http2Headers |
Http2Headers.clear() |
Http2Headers |
DefaultHttp2Headers.clear() |
Http2Headers |
Http2HeadersDecoder.decodeHeaders(ByteBuf headerBlock)
Decodes the given headers block and returns the headers.
|
Http2Headers |
DefaultHttp2HeadersDecoder.decodeHeaders(ByteBuf headerBlock) |
Http2Headers |
Http2Headers.method(AsciiString value)
Sets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
Http2Headers |
DefaultHttp2Headers.method(AsciiString value) |
Http2Headers |
Http2Headers.path(AsciiString value)
Sets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
Http2Headers |
DefaultHttp2Headers.path(AsciiString value) |
Http2Headers |
Http2Headers.scheme(AsciiString value)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header if there is no such header |
Http2Headers |
DefaultHttp2Headers.scheme(AsciiString value) |
Http2Headers |
EmptyHttp2Headers.set(AsciiString name,
AsciiString... values) |
Http2Headers |
Http2Headers.set(AsciiString name,
AsciiString... values) |
Http2Headers |
DefaultHttp2Headers.set(AsciiString name,
AsciiString... values) |
Http2Headers |
EmptyHttp2Headers.set(AsciiString name,
AsciiString value) |
Http2Headers |
Http2Headers.set(AsciiString name,
AsciiString value) |
Http2Headers |
DefaultHttp2Headers.set(AsciiString name,
AsciiString value) |
Http2Headers |
EmptyHttp2Headers.set(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
Http2Headers.set(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
DefaultHttp2Headers.set(AsciiString name,
Iterable<? extends AsciiString> values) |
Http2Headers |
EmptyHttp2Headers.set(BinaryHeaders headers) |
Http2Headers |
Http2Headers.set(BinaryHeaders headers) |
Http2Headers |
DefaultHttp2Headers.set(BinaryHeaders headers) |
Http2Headers |
EmptyHttp2Headers.setAll(BinaryHeaders headers) |
Http2Headers |
Http2Headers.setAll(BinaryHeaders headers) |
Http2Headers |
DefaultHttp2Headers.setAll(BinaryHeaders headers) |
Http2Headers |
EmptyHttp2Headers.setBoolean(AsciiString name,
boolean value) |
Http2Headers |
Http2Headers.setBoolean(AsciiString name,
boolean value) |
Http2Headers |
DefaultHttp2Headers.setBoolean(AsciiString name,
boolean value) |
Http2Headers |
EmptyHttp2Headers.setByte(AsciiString name,
byte value) |
Http2Headers |
Http2Headers.setByte(AsciiString name,
byte value) |
Http2Headers |
DefaultHttp2Headers.setByte(AsciiString name,
byte value) |
Http2Headers |
EmptyHttp2Headers.setChar(AsciiString name,
char value) |
Http2Headers |
Http2Headers.setChar(AsciiString name,
char value) |
Http2Headers |
DefaultHttp2Headers.setChar(AsciiString name,
char value) |
Http2Headers |
EmptyHttp2Headers.setDouble(AsciiString name,
double value) |
Http2Headers |
Http2Headers.setDouble(AsciiString name,
double value) |
Http2Headers |
DefaultHttp2Headers.setDouble(AsciiString name,
double value) |
Http2Headers |
EmptyHttp2Headers.setFloat(AsciiString name,
float value) |
Http2Headers |
Http2Headers.setFloat(AsciiString name,
float value) |
Http2Headers |
DefaultHttp2Headers.setFloat(AsciiString name,
float value) |
Http2Headers |
EmptyHttp2Headers.setInt(AsciiString name,
int value) |
Http2Headers |
Http2Headers.setInt(AsciiString name,
int value) |
Http2Headers |
DefaultHttp2Headers.setInt(AsciiString name,
int value) |
Http2Headers |
EmptyHttp2Headers.setLong(AsciiString name,
long value) |
Http2Headers |
Http2Headers.setLong(AsciiString name,
long value) |
Http2Headers |
DefaultHttp2Headers.setLong(AsciiString name,
long value) |
Http2Headers |
EmptyHttp2Headers.setObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
Http2Headers.setObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
DefaultHttp2Headers.setObject(AsciiString name,
Iterable<?> values) |
Http2Headers |
EmptyHttp2Headers.setObject(AsciiString name,
Object... values) |
Http2Headers |
Http2Headers.setObject(AsciiString name,
Object... values) |
Http2Headers |
DefaultHttp2Headers.setObject(AsciiString name,
Object... values) |
Http2Headers |
EmptyHttp2Headers.setObject(AsciiString name,
Object value) |
Http2Headers |
Http2Headers.setObject(AsciiString name,
Object value) |
Http2Headers |
DefaultHttp2Headers.setObject(AsciiString name,
Object value) |
Http2Headers |
EmptyHttp2Headers.setShort(AsciiString name,
short value) |
Http2Headers |
Http2Headers.setShort(AsciiString name,
short value) |
Http2Headers |
DefaultHttp2Headers.setShort(AsciiString name,
short value) |
Http2Headers |
EmptyHttp2Headers.setTimeMillis(AsciiString name,
long value) |
Http2Headers |
Http2Headers.setTimeMillis(AsciiString name,
long value) |
Http2Headers |
DefaultHttp2Headers.setTimeMillis(AsciiString name,
long value) |
Http2Headers |
Http2Headers.status(AsciiString value)
Sets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
Http2Headers |
DefaultHttp2Headers.status(AsciiString value) |
static Http2Headers |
HttpUtil.toHttp2Headers(FullHttpMessage in)
Converts the given HTTP/1.x headers into HTTP/2 headers.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpUtil.addHttp2ToHttpHeaders(int streamId,
Http2Headers sourceHeaders,
FullHttpMessage destinationMessage,
boolean addToTrailer)
Translate and add HTTP/2 headers to HTTP/1.x headers
|
void |
Http2HeadersEncoder.encodeHeaders(Http2Headers headers,
ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.
|
void |
DefaultHttp2HeadersEncoder.encodeHeaders(Http2Headers headers,
ByteBuf buffer) |
void |
Http2FrameLogger.logHeaders(Http2FrameLogger.Direction direction,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
Http2FrameLogger.logHeaders(Http2FrameLogger.Direction direction,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
Http2FrameLogger.logPushPromise(Http2FrameLogger.Direction direction,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(int streamId,
Http2Headers headers,
boolean validateHttpHeaders)
Create a new
FullHttpMessage based upon the current connection parameters |
void |
Http2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
Http2EventAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
InboundHttp2ToHttpAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endOfStream) |
void |
Http2FrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endOfStream)
Handles an inbound HEADERS frame.
|
void |
DelegatingDecompressorFrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
Http2FrameListenerDecorator.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
Http2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
Http2EventAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
InboundHttp2ToHttpAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream) |
void |
Http2FrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream)
Handles an inbound HEADERS frame with priority information specified.
|
void |
DelegatingDecompressorFrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
Http2FrameListenerDecorator.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
Http2FrameAdapter.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
void |
Http2EventAdapter.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
void |
InboundHttp2ToHttpAdapter.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
void |
Http2FrameListener.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding)
Handles an inbound PUSH_PROMISE frame.
|
void |
Http2FrameListenerDecorator.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.processHeadersBegin(ChannelHandlerContext ctx,
int streamId,
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.
|
protected FullHttpMessage |
InboundHttp2ToHttpPriorityAdapter.processHeadersBegin(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
boolean endOfStream,
boolean allowAppend,
boolean appendToTrailer) |
static FullHttpRequest |
HttpUtil.toHttpRequest(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
static FullHttpResponse |
HttpUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise)
Writes a HEADERS frame to the remote endpoint.
|
ChannelFuture |
CompressorHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
ChannelPromise promise)
Writes a HEADERS frame with priority specified to the remote endpoint.
|
ChannelFuture |
CompressorHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2ConnectionEncoder.writePushPromise(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writePushPromise(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writePushPromise(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writePushPromise(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding,
ChannelPromise promise)
Writes a PUSH_PROMISE frame to the remote endpoint.
|
Copyright © 2008–2015 The Netty Project. All rights reserved.