Class Http3


  • public final class Http3
    extends Object
    Contains utility methods that help to bootstrap server / clients with HTTP3 support.
    • Method Detail

      • getLocalControlStream

        @Nullable
        public static @Nullable io.netty.handler.codec.quic.QuicStreamChannel getLocalControlStream​(io.netty.channel.Channel channel)
        Returns the local initiated control stream for the HTTP/3 connection.
        Parameters:
        channel - the channel for the HTTP/3 connection.
        Returns:
        the control stream.
      • newRequestStream

        public static io.netty.util.concurrent.Future<io.netty.handler.codec.quic.QuicStreamChannel> newRequestStream​(io.netty.handler.codec.quic.QuicChannel channel,
                                                                                                                      io.netty.channel.ChannelHandler handler)
        Returns a new HTTP/3 request-stream that will use the given ChannelHandler to dispatch Http3RequestStreamFrames too. The needed HTTP/3 codecs are automatically added to the pipeline as well. If you need more control you can also use the Http3RequestStreamInitializer directly.
        Parameters:
        channel - the QuicChannel for which we create the request-stream.
        handler - the ChannelHandler to add.
        Returns:
        the Future that will be notified once the request-stream was opened.
      • newRequestStreamBootstrap

        public static io.netty.handler.codec.quic.QuicStreamChannelBootstrap newRequestStreamBootstrap​(io.netty.handler.codec.quic.QuicChannel channel,
                                                                                                       io.netty.channel.ChannelHandler handler)
        Returns a new HTTP/3 request-stream bootstrap that will use the given ChannelHandler to dispatch Http3RequestStreamFrames too. The needed HTTP/3 codecs are automatically added to the pipeline as well. If you need more control you can also use the Http3RequestStreamInitializer directly.
        Parameters:
        channel - the QuicChannel for which we create the request-stream.
        handler - the ChannelHandler to add.
        Returns:
        the QuicStreamChannelBootstrap that should be used.
      • supportedApplicationProtocols

        public static String[] supportedApplicationProtocols()
        Returns the supported protocols for H3.
        Returns:
        the supported protocols.
      • newQuicServerCodecBuilder

        public static io.netty.handler.codec.quic.QuicServerCodecBuilder newQuicServerCodecBuilder()
        Returns a new QuicServerCodecBuilder that has preconfigured for HTTP3.
        Returns:
        a pre-configured builder for HTTP3.
      • newQuicClientCodecBuilder

        public static io.netty.handler.codec.quic.QuicClientCodecBuilder newQuicClientCodecBuilder()
        Returns a new QuicClientCodecBuilder that has preconfigured for HTTP3.
        Returns:
        a pre-configured builder for HTTP3.