Version 1.8.0
Released on 2020-04-27.
Ratpack 1.8.0 is now available!
This release adds support for configuring a proxy to utilize with the HttpClient
for outgoing requests, additional convenience methods for Promise.retry
, a number of dependency updates, and other improvements .
The following core dependencies have been upgraded:
- Netty 4.1.37.Final → 4.1.48.Final
- Netty TCNative 2.0.25.Final → 2.0.30.Final
- Jackson 2.9.8 → 2.10.3
- Slf4j 1.7.25 → 1.7.30
- Guava 21.0 → 28.2-jre
- Dropwizard Metrics 4.0.5 → 4.1.6
- Log4j 2.6.2 → 2.13.1
- Caffeine 2.6.2 → 2.8.1
- Retrofit 2.4.0 → 2.8.1
Ratpack's HttpClient
can now be configured to utilize a proxy server when sending requests using the HttpClientSpec. proxy
method. Configuring the proxy requires specifying the host
and port
of the proxy. Optionally, the configured proxy can be bypassed for a set of destinations. This set uses the same pattern matching utilized by the core Java libraries and specified here: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html. It should be noted that the HttpClient
does not respect the http.proxyHost
, http.proxyPort
, and http.nonProxyHosts
system properties.
In this release, Promise.retry
has been extended to allow for specifying a Predicate
to indicate when the RetryPolicy
should be evaluated.
There are also a few other new convenience methods added to support easier development and testing of Ratpack applications. Thanks to all who contributed.
We hope you enjoy Ratpack 1.8.
--
Team Ratpack
Links
Pull Requests (12)
- [1466] - ability to specify a predicate for retries (drmaas)
- [1475] - Throw exception on DefaultCrypto trying to use NoPadding ciphers in ClientSession (michaelschlies)
- [1477] - Replace referencecs to Ratpack's @Nullable with jetbrains (michaelschlies)
- [1486] - Remove sleep for 500ms and replace with additional latch.countDown()s (michaelschlies)
- [1490] - Add path traversal verification tests (JLLeitschuh)
- [1494] - Documentation of async logging configuration (jonnybbb)
- [1497] - [#1496] fixed lazybones template zip archive file name (wololock)
- [1498] - Http client proxy (johnrengelman)
- [1513] - Upgrade vulnerable dependencies (jdbevan)
- [1514] - Add Promise.onComplete. (johnrengelman)
- [1515] - executingSingle with registry (annamalai87)
- [1516] - Added definition of portFile configuration property into ServerConfig (andsel)