v1.2.0-M4
Pre-release
Pre-release
Reactor Netty
1.2.0-M4
is part of 2024.0.0-M4
Release Train.
This milestone adds HTTP/3
client support.
Enablement of the HTTP/3
client support:
- a dependency to netty-incubator-codec-http3 is specified
- the HTTP protocol is configured as
HTTP3
The example below shows one simple configuration for the HttpClient
:
public class Application {
public static void main(String[] args) throws Exception {
HttpClient client =
HttpClient.create()
.remoteAddress(() -> new InetSocketAddress("www.google.com", 443))
.protocol(HttpProtocol.HTTP3)
.secure()
.http3Settings(spec -> spec.idleTimeout(Duration.ofSeconds(5))
.maxData(10000000)
.maxStreamDataBidirectionalLocal(1000000));
Tuple2<String, HttpHeaders> response =
client.get()
.uri("/")
.responseSingle((res, bytes) -> bytes.asString()
.zipWith(Mono.just(res.responseHeaders())))
.block();
System.out.println("Used stream ID: " + response.getT2().get("x-http3-stream-id"));
System.out.println("Response: " + response.getT1());
}
}
Reactor Netty
1.2.0-M4
inherits all changes from the 1.0.x
and 1.1.x
branches at the point this release was cut.
What's Changed
✨ New features and improvements
- Depend on
Reactor Core
v3.7.0-M4
by @chemicL in 24d4fde, see release notes - Depend on
Netty
v4.1.111.Final
by @violetagg in #3293 - Depend on
Netty QUIC Codec
v0.0.65.Final
by @violetagg in #3320 HTTP/3
client support- Add
HTTP/3
client initial settings by @violetagg in #3311 - Add
HttpProtocol#HTTP3
by @violetagg in #3312 - When there is no bind address, configure the default one by @violetagg in #3313
- Add bind support for
DefaultPooledConnectionProvider
by @violetagg in #3314 - Add
Http3Pool
by @violetagg in #3317 - Initial
HTTP/3
client support by @violetagg in #3319
- Add
- Add
Brotli
support forHttpClient
by @violetagg in #3331
🐞 Bug fixes
- Close the connection when decoding exception happens by @violetagg in #3290
Http2Pool
: when applyingacquireTimeout
, check for current pendingBorrowers
by @violetagg in #3300- When an explicit
EventLoopGroup
is configured ensure only one connection pool is created by @violetagg in #3321
Full Changelog: v1.2.0-M3...v1.2.0-M4