Skip to content

armeria-0.6.0.Final

Choose a tag to compare

@trustin trustin released this 08 Dec 07:49
· 5067 commits to main since this release

Visit the milestone page for the detailed change list.

Debug form (DocService)

  • Sending a debug form in a DocService page will add a URL hash which contains the content of the debug form to the current browser location. A user could share the URL, so that the recipient sees a pre-populated debug form.
  • A user can specify sample Thrift arguments when constructing a DocService so that the DocService can populate a better JSON template in a debug form.

Server-side metrics

  • Added MetricCollectingService as a preparatory step for implementing concrete metrics support

HttpService

  • Added HttpService.orElse() that allows combining two HttpService into one. e.g. HttpFileService.for(...).orElse(TomcatService.for(...)

Core

  • The name of the Logger returned by ServiceInvocationContext.logger() has changed.
    • It's armeria.services.<service_path_prefix> by default. e.g. armeria.services.hello.thrift for /hello/thrift
    • The service logger name can be customized via ServerBuilder.serviceLoggerNamePrefix() and by specifying the logger name when binding a service via ServerBuilder.service() or VirtualHostBuilder.service().
  • Renamed ServiceEntry to ServiceConfig
  • Added parent getter methods to the configuration classes for better user experience:
    • ServiceConfig.virtualHost()
    • ServiceConfig.server()
    • VirtualHost.server()
    • ServerConfig.server()
  • The signatures of the following methods have been changed:
    • Service.serviceAdded(ServiceConfig)
    • ServiceCodec.decodeRequest(ServiceConfig, ...)
    • ServiceCodec.codecAdded(ServiceConfig)
    • ServiceHandler.handlerAdded(ServiceConfig)