程序包 | 说明 |
---|---|
io.netty.example.http2.helloworld.server | |
io.netty.handler.codec.http2 |
Benchmarks for
io.netty.handler.codec.http2 . |
io.netty.testsuite.http2 |
This package is intended to test the http2 implementation against the specification
using h2spec
|
限定符和类型 | 方法和说明 |
---|---|
void |
HelloWorldHttp2Handler.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endOfStream) |
void |
HelloWorldHttp2Handler.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream) |
void |
HelloWorldHttp2Handler.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultHttp2Headers |
class |
EmptyHttp2Headers |
class |
ReadOnlyHttp2Headers
A variant of
Http2Headers which only supports read-only methods. |
限定符和类型 | 方法和说明 |
---|---|
Http2Headers |
ReadOnlyHttp2Headers.add(java.lang.CharSequence name,
java.lang.CharSequence... values) |
Http2Headers |
ReadOnlyHttp2Headers.add(java.lang.CharSequence name,
java.lang.CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.add(java.lang.CharSequence name,
java.lang.Iterable<? extends java.lang.CharSequence> values) |
Http2Headers |
ReadOnlyHttp2Headers.add(Headers<? extends java.lang.CharSequence,? extends java.lang.CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.addBoolean(java.lang.CharSequence name,
boolean value) |
Http2Headers |
ReadOnlyHttp2Headers.addByte(java.lang.CharSequence name,
byte value) |
Http2Headers |
ReadOnlyHttp2Headers.addChar(java.lang.CharSequence name,
char value) |
Http2Headers |
ReadOnlyHttp2Headers.addDouble(java.lang.CharSequence name,
double value) |
Http2Headers |
ReadOnlyHttp2Headers.addFloat(java.lang.CharSequence name,
float value) |
Http2Headers |
ReadOnlyHttp2Headers.addInt(java.lang.CharSequence name,
int value) |
Http2Headers |
ReadOnlyHttp2Headers.addLong(java.lang.CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(java.lang.CharSequence name,
java.lang.Iterable<?> values) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(java.lang.CharSequence name,
java.lang.Object... values) |
Http2Headers |
ReadOnlyHttp2Headers.addObject(java.lang.CharSequence name,
java.lang.Object value) |
Http2Headers |
ReadOnlyHttp2Headers.addShort(java.lang.CharSequence name,
short value) |
Http2Headers |
ReadOnlyHttp2Headers.addTimeMillis(java.lang.CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.authority(java.lang.CharSequence value) |
Http2Headers |
Http2Headers.authority(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header |
Http2Headers |
DefaultHttp2Headers.authority(java.lang.CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.clear() |
Http2Headers |
DefaultHttp2Headers.clear() |
Http2Headers |
Http2HeadersDecoder.decodeHeaders(int streamId,
ByteBuf headerBlock)
Decodes the given headers block and returns the headers.
|
Http2Headers |
DefaultHttp2HeadersDecoder.decodeHeaders(int streamId,
ByteBuf headerBlock) |
Http2Headers |
Http2HeadersFrame.headers()
A complete header list.
|
Http2Headers |
DefaultHttp2HeadersFrame.headers() |
Http2Headers |
Http2PushPromiseFrame.http2Headers()
Http2Headers sent in Push Promise |
Http2Headers |
DefaultHttp2PushPromiseFrame.http2Headers() |
Http2Headers |
ReadOnlyHttp2Headers.method(java.lang.CharSequence value) |
Http2Headers |
Http2Headers.method(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.METHOD header |
Http2Headers |
DefaultHttp2Headers.method(java.lang.CharSequence value) |
protected Http2Headers |
DefaultHttp2HeadersDecoder.newHeaders()
Create a new
Http2Headers object which will store the results of the decode operation. |
Http2Headers |
ReadOnlyHttp2Headers.path(java.lang.CharSequence value) |
Http2Headers |
Http2Headers.path(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.PATH header |
Http2Headers |
DefaultHttp2Headers.path(java.lang.CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.scheme(java.lang.CharSequence value) |
Http2Headers |
Http2Headers.scheme(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header |
Http2Headers |
DefaultHttp2Headers.scheme(java.lang.CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.set(java.lang.CharSequence name,
java.lang.CharSequence... values) |
Http2Headers |
ReadOnlyHttp2Headers.set(java.lang.CharSequence name,
java.lang.CharSequence value) |
Http2Headers |
ReadOnlyHttp2Headers.set(java.lang.CharSequence name,
java.lang.Iterable<? extends java.lang.CharSequence> values) |
Http2Headers |
ReadOnlyHttp2Headers.set(Headers<? extends java.lang.CharSequence,? extends java.lang.CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.setAll(Headers<? extends java.lang.CharSequence,? extends java.lang.CharSequence,?> headers) |
Http2Headers |
ReadOnlyHttp2Headers.setBoolean(java.lang.CharSequence name,
boolean value) |
Http2Headers |
ReadOnlyHttp2Headers.setByte(java.lang.CharSequence name,
byte value) |
Http2Headers |
ReadOnlyHttp2Headers.setChar(java.lang.CharSequence name,
char value) |
Http2Headers |
ReadOnlyHttp2Headers.setDouble(java.lang.CharSequence name,
double value) |
Http2Headers |
ReadOnlyHttp2Headers.setFloat(java.lang.CharSequence name,
float value) |
Http2Headers |
ReadOnlyHttp2Headers.setInt(java.lang.CharSequence name,
int value) |
Http2Headers |
ReadOnlyHttp2Headers.setLong(java.lang.CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(java.lang.CharSequence name,
java.lang.Iterable<?> values) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(java.lang.CharSequence name,
java.lang.Object... values) |
Http2Headers |
ReadOnlyHttp2Headers.setObject(java.lang.CharSequence name,
java.lang.Object value) |
Http2Headers |
ReadOnlyHttp2Headers.setShort(java.lang.CharSequence name,
short value) |
Http2Headers |
ReadOnlyHttp2Headers.setTimeMillis(java.lang.CharSequence name,
long value) |
Http2Headers |
ReadOnlyHttp2Headers.status(java.lang.CharSequence value) |
Http2Headers |
Http2Headers.status(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.STATUS header |
Http2Headers |
DefaultHttp2Headers.status(java.lang.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.
|
限定符和类型 | 方法和说明 |
---|---|
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 |
Http2HeadersEncoder.encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.
|
void |
DefaultHttp2HeadersEncoder.encodeHeaders(int streamId,
Http2Headers headers,
ByteBuf 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 |
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 |
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 padding,
boolean endStream) |
void |
Http2EventAdapter.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 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 |
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.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 |
DelegatingDecompressorFrameListener.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream) |
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 |
Http2FrameListener.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding)
Handles an inbound
PUSH_PROMISE frame. |
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) |
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 |
StreamBufferingEncoder.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 padding,
boolean endStream,
ChannelPromise promise)
Writes a HEADERS frame to the remote endpoint.
|
ChannelFuture |
DefaultHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2ConnectionEncoder.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 |
CompressorHttp2ConnectionEncoder.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
StreamBufferingEncoder.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 |
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 |
DefaultHttp2FrameWriter.writeHeaders(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
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 |
DecoratingHttp2FrameWriter.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 |
Http2OutboundFrameLogger.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.
|
ChannelFuture |
DefaultHttp2FrameWriter.writePushPromise(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2ConnectionEncoder.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) |
构造器和说明 |
---|
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) |
限定符和类型 | 方法和说明 |
---|---|
void |
HelloWorldHttp2Handler.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int padding,
boolean endOfStream) |
void |
HelloWorldHttp2Handler.onHeadersRead(ChannelHandlerContext ctx,
int streamId,
Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endOfStream) |
void |
HelloWorldHttp2Handler.onPushPromiseRead(ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
Http2Headers headers,
int padding) |