Top Description Interfaces Classes Enums
[default module]

Package io.netty.handler.codec.http2

Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi

Handlers for sending and receiving HTTP/2 frames.

Interface Summary

Modifier and TypeInterface and Description
public interface
Http2Connection

Manager for the state of an HTTP/2 connection with the remote end-point.

public interface
Http2ConnectionDecoder

Handler for inbound traffic on behalf of Http2ConnectionHandler.

public interface
Http2ConnectionEncoder

Handler for outbound HTTP/2 traffic.

public interface
Http2DataFrame

HTTP/2 DATA frame.

public interface
Http2DataWriter

Interface that defines an object capable of producing HTTP/2 data frames.

public interface
Http2FlowController

Base interface for all HTTP/2 flow controllers.

public interface
Http2Frame

An HTTP/2 frame.

public interface
Http2FrameListener

An listener of HTTP/2 frames.

public interface
Http2FrameReader

Reads HTTP/2 frames from an input ByteBuf and notifies the specified Http2FrameListener when frames are complete.

public interface
public interface
Http2FrameStream

A single stream within an HTTP/2 connection.

public interface
Http2FrameStreamVisitor

A visitor that allows to iterate over a collection of Http2FrameStreams.

public interface
Http2FrameWriter

A writer responsible for marshaling HTTP/2 frames to the channel.

public interface
Http2GoAwayFrame

HTTP/2 GOAWAY frame.

public interface
Http2Headers

A collection of headers sent or received via HTTP/2.

public interface
Http2HeadersDecoder

Decodes HPACK-encoded headers blocks into Http2Headers.

public interface
Http2HeadersEncoder

Encodes Http2Headers into HPACK-encoded headers blocks.

public interface
Http2HeadersFrame

HTTP/2 HEADERS frame.

public interface
Http2LifecycleManager

Manager for the life cycle of the HTTP/2 connection.

public interface
Http2LocalFlowController

A Http2FlowController for controlling the inbound flow of DATA frames from the remote endpoint.

public interface
Http2PingFrame

HTTP/2 PING Frame.

public interface
Http2PriorityFrame

HTTP/2 Priority Frame

public interface
Http2PromisedRequestVerifier

Provides an extensibility point for users to define the validity of push requests.

public interface
Http2PushPromiseFrame

HTTP/2 Push Promise Frame

public interface
Http2RemoteFlowController

A Http2FlowController for controlling the flow of outbound DATA frames to the remote endpoint.

public interface
Http2ResetFrame

HTTP/2 RST_STREAM frame.

public interface
Http2SettingsAckFrame

An ack for a previously received Http2SettingsFrame.

public interface
Http2SettingsFrame

HTTP/2 SETTINGS frame.

public interface
Http2SettingsReceivedConsumer

Provides a Consumer like interface to consume remote settings received but not yet ACKed.

public interface
Http2Stream

A single stream within an HTTP2 connection.

public interface
public interface
Http2StreamFrame

A frame whose meaning may apply to a particular stream, instead of the entire connection.

public interface
Http2StreamVisitor

A visitor that allows iteration over a collection of streams.

public interface
public interface
Http2WindowUpdateFrame

HTTP/2 WINDOW_UPDATE frame.

public interface
StreamByteDistributor

An object (used by remote flow control) that is responsible for distributing the bytes to be written across the streams in the connection.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractHttp2ConnectionHandlerBuilder<
The type of handler created by this builder.
T extends Http2ConnectionHandler
,
The concrete type of this builder.
B extends AbstractHttp2ConnectionHandlerBuilder<T, B>
>

Abstract base class which defines commonly used features required to build Http2ConnectionHandler instances.

pack-priv abstract class
public abstract class
AbstractHttp2StreamFrame

Abstract implementation of Http2StreamFrame.

public abstract class
public class
CharSequenceMap<V>

Internal use only!

public class
CleartextHttp2ServerUpgradeHandler

Performing cleartext upgrade, by h2c HTTP upgrade or Prior Knowledge.

public class
CompressorHttp2ConnectionEncoder

A decorating HTTP2 encoder that will compress data frames according to the content-encoding header for each stream.

public class
DecoratingHttp2ConnectionDecoder

Decorator around another Http2ConnectionDecoder instance.

public class
DecoratingHttp2ConnectionEncoder

A decorator around another Http2ConnectionEncoder instance.

public class
DecoratingHttp2FrameWriter

Decorator around another Http2FrameWriter instance.

public class
DefaultHttp2Connection

Simple implementation of Http2Connection.

public class
DefaultHttp2ConnectionDecoder

Provides the default implementation for processing inbound frame events and delegates to a Http2FrameListener

This class will read HTTP/2 frames and delegate the events to a Http2FrameListener

This interface enforces inbound flow control functionality through Http2LocalFlowController

public class
public class
DefaultHttp2DataFrame

The default Http2DataFrame implementation.

public class
DefaultHttp2FrameReader

A Http2FrameReader that supports all frame types defined by the HTTP/2 specification.

public class
DefaultHttp2FrameWriter

A Http2FrameWriter that supports all frame types defined by the HTTP/2 specification.

public class
DefaultHttp2GoAwayFrame

The default Http2GoAwayFrame implementation.

public class
public class
public class
public class
DefaultHttp2HeadersFrame

The default Http2HeadersFrame implementation.

public class
public class
DefaultHttp2PingFrame

The default Http2PingFrame implementation.

public class
public class
public class
public class
DefaultHttp2ResetFrame

The default Http2ResetFrame implementation.

pack-priv class
public class
DefaultHttp2SettingsFrame

The default Http2SettingsFrame implementation.

public class
public class
public class
DelegatingDecompressorFrameListener

An HTTP2 frame listener that will decompress data frames according to the content-encoding header for each stream.

public class
pack-priv class
pack-priv class
pack-priv class
HpackEncoder

An HPACK encoder.

pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
public abstract class
Http2ChannelDuplexHandler

A ChannelDuplexHandler providing additional functionality for HTTP/2.

public class
Http2ClientUpgradeCodec

Client-side cleartext upgrade codec from HTTP to HTTP/2.

public class
Http2CodecUtil

Constants and utility method used for encoding/decoding HTTP2 frames.

public class
Http2ConnectionAdapter

Provides empty implementations of all Http2Connection.Listener methods.

public class
Http2ConnectionHandler

Provides the default implementation for processing inbound frame events and delegates to a Http2FrameListener

This class will read HTTP/2 frames and delegate the events to a Http2FrameListener

This interface enforces inbound flow control functionality through Http2LocalFlowController

public class
public class
Http2ConnectionPrefaceAndSettingsFrameWrittenEvent

Signifies that the connection preface and the initial SETTINGS frame have been sent.

pack-priv class
Http2ControlFrameLimitEncoder

DecoratingHttp2ConnectionEncoder which guards against a remote peer that will trigger a massive amount of control frames but will not consume our responses to these.

public class
Http2DataChunkedInput

A ChunkedInput that fetches data chunk by chunk for use with HTTP/2 Data Frames.

pack-priv class
Http2EmptyDataFrameConnectionDecoder

Enforce a limit on the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before the connection will be closed.

pack-priv class
Http2EmptyDataFrameListener

Enforce a limit on the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before the connection will be closed.

public class
Http2EventAdapter

This class brings Http2Connection.Listener and Http2FrameListener together to provide NOOP implementation so inheriting classes can selectively choose which methods to override.

public class
Http2Exception

Exception thrown when an HTTP/2 error was encountered.

public class
Http2Flags

Provides utility methods for accessing specific flags as defined by the HTTP/2 spec.

public class
Http2FrameAdapter

Convenience class that provides no-op implementations for all methods of Http2FrameListener.

public class
Http2FrameCodec

This API is very immature.

public class
public class
Http2FrameListenerDecorator

Provides a decorator around a Http2FrameListener and delegates all method calls

public class
Http2FrameLogger

Logs HTTP2 frames for debugging purposes.

public class
public class
Http2FrameStreamException

An HTTP/2 exception for a specific Http2FrameStream.

public class
Http2FrameTypes

Registry of all standard frame types defined by the HTTP/2 specification.

public class
Http2InboundFrameLogger

Decorator around a Http2FrameReader that logs all inbound frames before calling back the listener.

pack-priv class
Http2MaxRstFrameDecoder

Enforce a limit on the maximum number of RST frames that are allowed per a window before the connection will be closed with a GO_AWAY frame.

pack-priv class
public class
Http2MultiplexActiveStreamsException

Exception that can be used to wrap some Throwable and fire it through the pipeline.

public class
Http2MultiplexCodec

Deprecated use Http2FrameCodecBuilder together with Http2MultiplexHandler.
An HTTP/2 handler that creates child channels for each stream.
public class
public class
Http2MultiplexHandler

An HTTP/2 handler that creates child channels for each stream.

public class
Http2NoMoreStreamIdsException

This exception is thrown when there are no more stream IDs available for the current connection

public class
Http2OutboundFrameLogger

Decorator around a Http2FrameWriter that logs all outbound frames before calling the writer.

public class
Http2SecurityUtil

Provides utilities related to security requirements specific to HTTP/2.

public class
Http2ServerUpgradeCodec

Server-side codec for performing a cleartext upgrade from HTTP/1.x to HTTP/2.

public class
Http2Settings

Settings for one endpoint in an HTTP/2 connection.

public class
pack-priv class
Http2StreamChannelId

ChannelId implementation which is used by our Http2StreamChannel implementation.

public class
Http2StreamFrameToHttpObjectCodec

This handler converts from Http2StreamFrame to HttpObject, and back.

public class
HttpConversionUtil

Provides utility methods and constants for the HTTP/2 to HTTP conversion

public class
HttpToHttp2ConnectionHandler

Translates HTTP/1.x object writes into HTTP/2 frames.

public class
public class
InboundHttp2ToHttpAdapter

This adapter provides just header/data events from the HTTP message flow defined in [RFC 7540], Section 8.1.

public class
public class
InboundHttpToHttp2Adapter

Translates HTTP/1.x object reads into HTTP/2 frames.

pack-priv class
public class
ReadOnlyHttp2Headers

A variant of Http2Headers which only supports read-only methods.

public class
StreamBufferingEncoder

Implementation of a Http2ConnectionEncoder that dispatches all method call to another Http2ConnectionEncoder, until SETTINGS_MAX_CONCURRENT_STREAMS is reached.

public class
UniformStreamByteDistributor

A StreamByteDistributor that ignores stream priority and uniformly allocates bytes to all streams.

public class
WeightedFairQueueByteDistributor

A StreamByteDistributor that is sensitive to stream priority and uses Weighted Fair Queueing approach for distributing bytes.

Enum Summary

Modifier and TypeEnum and Description
public enum
Http2Error

All error codes identified by the HTTP/2 spec.