public final class Http3 extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_INITIAL_MAX_STREAM_DATA_UNIDIRECTIONAL
|
static int |
MIN_INITIAL_MAX_STREAMS_UNIDIRECTIONAL
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable io.netty.incubator.codec.quic.QuicStreamChannel |
getLocalControlStream(io.netty.channel.Channel channel)
Returns the local initiated control stream for the HTTP/3 connection.
|
static io.netty.incubator.codec.quic.QuicClientCodecBuilder |
newQuicClientCodecBuilder()
Returns a new
QuicClientCodecBuilder that has preconfigured for HTTP3. |
static io.netty.incubator.codec.quic.QuicServerCodecBuilder |
newQuicServerCodecBuilder()
Returns a new
QuicServerCodecBuilder that has preconfigured for HTTP3. |
static io.netty.util.concurrent.Future<io.netty.incubator.codec.quic.QuicStreamChannel> |
newRequestStream(io.netty.incubator.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. |
static io.netty.incubator.codec.quic.QuicStreamChannelBootstrap |
newRequestStreamBootstrap(io.netty.incubator.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. |
static String[] |
supportedApplicationProtocols()
Returns the supported protocols for H3.
|
public static final int MIN_INITIAL_MAX_STREAMS_UNIDIRECTIONAL
public static final int MIN_INITIAL_MAX_STREAM_DATA_UNIDIRECTIONAL
@Nullable public static @Nullable io.netty.incubator.codec.quic.QuicStreamChannel getLocalControlStream(io.netty.channel.Channel channel)
channel - the channel for the HTTP/3 connection.public static io.netty.util.concurrent.Future<io.netty.incubator.codec.quic.QuicStreamChannel> newRequestStream(io.netty.incubator.codec.quic.QuicChannel channel,
io.netty.channel.ChannelHandler handler)
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.channel - the QuicChannel for which we create the request-stream.handler - the ChannelHandler to add.Future that will be notified once the request-stream was opened.public static io.netty.incubator.codec.quic.QuicStreamChannelBootstrap newRequestStreamBootstrap(io.netty.incubator.codec.quic.QuicChannel channel,
io.netty.channel.ChannelHandler handler)
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.channel - the QuicChannel for which we create the request-stream.handler - the ChannelHandler to add.QuicStreamChannelBootstrap that should be used.public static String[] supportedApplicationProtocols()
public static io.netty.incubator.codec.quic.QuicServerCodecBuilder newQuicServerCodecBuilder()
QuicServerCodecBuilder that has preconfigured for HTTP3.public static io.netty.incubator.codec.quic.QuicClientCodecBuilder newQuicClientCodecBuilder()
QuicClientCodecBuilder that has preconfigured for HTTP3.Copyright © 2020–2024 The Netty Project. All rights reserved.