armeria-0.6.0.Final
·
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
DocServicepage 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
DocServiceso that theDocServicecan populate a better JSON template in a debug form.
Server-side metrics
- Added
MetricCollectingServiceas a preparatory step for implementing concrete metrics support
HttpService
- Added
HttpService.orElse()that allows combining twoHttpServiceinto one. e.g.HttpFileService.for(...).orElse(TomcatService.for(...)
Core
- The name of the
Loggerreturned byServiceInvocationContext.logger()has changed.- It's
armeria.services.<service_path_prefix>by default. e.g.armeria.services.hello.thriftfor/hello/thrift - The service logger name can be customized via
ServerBuilder.serviceLoggerNamePrefix()and by specifying the logger name when binding a service viaServerBuilder.service()orVirtualHostBuilder.service().
- It's
- Renamed
ServiceEntrytoServiceConfig - 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)