Skip to content

armeria-0.26.0.Final

Choose a tag to compare

@trustin trustin released this 20 Sep 10:11
· 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.
  • #274 #276 Add 'sticky HTTP headers' checkbox in the DocService debug 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 BiFunction that transforms a RequestLog into a metric name.

Improvements

  • #272 Add version number to the User-Agent header of HttpClient
  • #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 DocService debug 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, PathMapping now has two new methods: loggerName() and metricName().
    • See #280 for the detail.
  • #281 Fix NPE in HttpFileService for not-modified files by not sending Content-Type regardless.