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 |
class |
ReadOnlyHttp2Headers
A variant of
Http2Headers which only supports read-only methods. |
Modifier and Type | Method and Description |
---|---|
Http2Headers |
ReadOnlyHttp2Headers.add(CharSequence name,
CharSequence... values) |
Http2Headers |
ReadOnlyHttp2Headers.add(CharSequence name,
CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.add(CharSequence name,
Iterable<? extends CharSequence> values) |
Http2Headers |
ReadOnlyHttp2Headers.add(Headers<? extends CharSequence,? extends CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.addBoolean(CharSequence name,
boolean value) |
Http2Headers |
ReadOnlyHttp2Headers.addByte(CharSequence name,
byte value) |
Http2Headers |
ReadOnlyHttp2Headers.addChar(CharSequence name,
char value) |
Http2Headers |
ReadOnlyHttp2Headers.addDouble(CharSequence name,
double value) |
Http2Headers |
ReadOnlyHttp2Headers.addFloat(CharSequence name,
float value) |
Http2Headers |
ReadOnlyHttp2Headers.addInt(CharSequence name,
int value) |
Http2Headers |
ReadOnlyHttp2Headers.addLong(CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(CharSequence name,
Iterable<?> values) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(CharSequence name,
Object... values) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(CharSequence name,
Object value) |
Http2Headers |
ReadOnlyHttp2Headers.addShort(CharSequence name,
short value) |
Http2Headers |
ReadOnlyHttp2Headers.addTimeMillis(CharSequence name,
long value) |
Http2Headers |
Http2Headers.authority(CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header |
Http2Headers |
ReadOnlyHttp2Headers.authority(CharSequence value) |
Http2Headers |
DefaultHttp2Headers.authority(CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.clear() |
Http2Headers |
DefaultHttp2Headers.clear() |
Http2Headers |
DefaultHttp2HeadersDecoder.decodeHeaders(int streamId,
ByteBuf headerBlock) |
Http2Headers |
Http2HeadersDecoder.decodeHeaders(int streamId,
ByteBuf headerBlock)
Decodes the given headers block and returns the headers.
|
Http2Headers |
Http2HeadersFrame.headers()
A complete header list.
|
Http2Headers |
DefaultHttp2HeadersFrame.headers() |
Http2Headers |
Http2PushPromiseFrame.http2Headers()
Http2Headers sent in Push Promise |
Http2Headers |
DefaultHttp2PushPromiseFrame.http2Headers() |
Http2Headers |
Http2Headers.method(CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.METHOD header |
Http2Headers |
ReadOnlyHttp2Headers.method(CharSequence value) |
Http2Headers |
DefaultHttp2Headers.method(CharSequence value) |
protected Http2Headers |
DefaultHttp2HeadersDecoder.newHeaders()
Create a new
Http2Headers object which will store the results of the decode operation. |
Http2Headers |
Http2Headers.path(CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.PATH header |
Http2Headers |
ReadOnlyHttp2Headers.path(CharSequence value) |
Http2Headers |
DefaultHttp2Headers.path(CharSequence value) |
Http2Headers |
Http2Headers.scheme(CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header |
Http2Headers |
ReadOnlyHttp2Headers.scheme(CharSequence value) |
Http2Headers |
DefaultHttp2Headers.scheme(CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.set(CharSequence name,
CharSequence... values) |
Http2Headers |
ReadOnlyHttp2Headers.set(CharSequence name,
CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.set(CharSequence name,
Iterable<? extends CharSequence> values) |
Http2Headers |
ReadOnlyHttp2Headers.set(Headers<? extends CharSequence,? extends CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.setAll(Headers<? extends CharSequence,? extends CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.setBoolean(CharSequence name,
boolean value) |
Http2Headers |
ReadOnlyHttp2Headers.setByte(CharSequence name,
byte value) |
Http2Headers |
ReadOnlyHttp2Headers.setChar(CharSequence name,
char value) |
Http2Headers |
ReadOnlyHttp2Headers.setDouble(CharSequence name,
double value) |
Http2Headers |
ReadOnlyHttp2Headers.setFloat(CharSequence name,
float value) |
Http2Headers |
ReadOnlyHttp2Headers.setInt(CharSequence name,
int value) |
Http2Headers |
ReadOnlyHttp2Headers.setLong(CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(CharSequence name,
Iterable<?> values) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(CharSequence name,
Object... values) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(CharSequence name,
Object value) |
Http2Headers |
ReadOnlyHttp2Headers.setShort(CharSequence name,
short value) |
Http2Headers |
ReadOnlyHttp2Headers.setTimeMillis(CharSequence name,
long value) |
Http2Headers |
Http2Headers.status(CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.STATUS header |
Http2Headers |
ReadOnlyHttp2Headers.status(CharSequence value) |
Http2Headers |
DefaultHttp2Headers.status(CharSequence value) |
static Http2Headers |
HttpConversionUtil.toHttp2Headers(HttpHeaders inHeaders,
boolean validateHeaders) |
static Http2Headers |
HttpConversionUtil.toHttp2Headers(HttpMessage in,
boolean validateHeaders)
Converts the given HTTP/1.x headers into HTTP/2 headers.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpConversionUtil.addHttp2ToHttpHeaders(int streamId,
Http2Headers inputHeaders,
FullHttpMessage destinationMessage,
boolean addToTrailer)
Translate and add HTTP/2 headers to HTTP/1.x headers.
|
static void |
HttpConversionUtil.addHttp2ToHttpHeaders(int streamId,
Http2Headers inputHeaders,
HttpHeaders outputHeaders,
HttpVersion httpVersion,
boolean isTrailer,
boolean isRequest)
Translate and add HTTP/2 headers to HTTP/1.x headers.
|
void |
DefaultHttp2HeadersEncoder.encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer) |
void |
Http2HeadersEncoder.encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.
|
boolean |
Http2PromisedRequestVerifier.isAuthoritative(ChannelHandlerContext ctx,
Http2Headers headers)
Determine if a
Http2Headers are authoritative for a particular ChannelHandlerContext . |
boolean |
Http2PromisedRequestVerifier.isCacheable(Http2Headers headers)
Determine if a request is cacheable.
|
boolean |
Http2PromisedRequestVerifier.isSafe(Http2Headers headers)
Determine if a request is safe.
|
void |
Http2FrameLogger.logHeaders(Http2FrameLogger.Direction direction,
ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
Http2FrameLogger.logHeaders(Http2FrameLogger.Direction direction,
ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
Http2FrameLogger.logPushPromise(Http2FrameLogger.Direction direction,
ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream,
Http2Headers headers,
boolean validateHttpHeaders,
ByteBufAllocator alloc)
Create a new
FullHttpMessage based upon the current connection parameters |
void |
Http2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream) |
void |
DelegatingDecompressorFrameListener.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 |
Http2FrameListenerDecorator.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 |
Http2FrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endOfStream)
Handles an inbound
HEADERS frame. |
void |
Http2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
void |
DelegatingDecompressorFrameListener.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 |
Http2FrameListenerDecorator.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 |
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 |
Http2FrameAdapter.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 |
Http2FrameListenerDecorator.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 |
Http2FrameListener.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding)
Handles an inbound
PUSH_PROMISE frame. |
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.
|
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId,
Http2Headers http2Headers,
ByteBuf content,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBuf content,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
static void |
HttpConversionUtil.toHttp2Headers(HttpHeaders inHeaders,
Http2Headers out) |
static HttpRequest |
HttpConversionUtil.toHttpRequest(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the request data.
|
static HttpResponse |
HttpConversionUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the response data.
|
ChannelFuture |
Http2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise)
Writes a HEADERS frame to the remote endpoint.
|
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
StreamBufferingEncoder.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 |
CompressorHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DecoratingHttp2FrameWriter.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 |
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 |
DefaultHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
StreamBufferingEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
CompressorHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
DecoratingHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
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.
|
ChannelFuture |
DefaultHttp2ConnectionEncoder.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 |
DecoratingHttp2FrameWriter.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) |
Constructor and Description |
---|
DefaultHttp2HeadersFrame(Http2Headers headers)
Equivalent to
new DefaultHttp2HeadersFrame(headers, false) . |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream)
Equivalent to
new DefaultHttp2HeadersFrame(headers, endStream, 0) . |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream,
int padding)
Construct a new headers message.
|
DefaultHttp2PushPromiseFrame(Http2Headers http2Headers) |
DefaultHttp2PushPromiseFrame(Http2Headers http2Headers,
int padding) |
Copyright © 2008–2024 The Netty Project. All rights reserved.