armeria-0.26.0.Final
·
4601 commits
to main
since this release
New features
-
#263 Add CORS support
ServerBuilder sb = ...; sb.serviceUnder("/foo/bar", myHttpService.decorate( CorsServiceBuilder.forOrigin("example.com") .allowRequestMethods(HttpMethod.GET).newDecorator()));
-
#272 Expose version information in runtime
- See
com.linecorp.armeria.common.util.Version.
- See
-
#274 #276 Add 'sticky HTTP headers' checkbox in the
DocServicedebug form- When the checkbox is checked, the HTTP headers in the debug form are preserved even if you navigate to other functions.
- Useful when specifying a common header such as authentication token.
-
#280 Allow a user to customize the names of the Dropwizard Metrics metric entries
- A user can now specify a
BiFunctionthat transforms aRequestLoginto a metric name.
- A user can now specify a
Improvements
- #272 Add version number to the
User-Agentheader ofHttpClient - #277 Update the dependencies
- Brave 3.11.0
- Jackson 2.7.7
- Tomcat 8.5.5
- Netty TCNative BoringSSL (static) 1.1.33.Fork22
Bug fixes
- #273 #274 (De)serialize large integers in the
DocServicedebug form without losing precision - #278 #280 Do not include the full path to the metric names.
- Client and server side defaults are now
<prefix>.<method>and<prefix>.<pathMapping.metricName>.<method>respectively. - To generate better server-side logger names and metric names,
PathMappingnow has two new methods:loggerName()andmetricName(). - See #280 for the detail.
- Client and server side defaults are now
- #281 Fix NPE in HttpFileService for not-modified files by not sending
Content-Typeregardless.