You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can now include or exclude service methods using DocServiceFilter when building a DocService.
See our documentation for more information. #1609
ServerBuildersb = newServerBuilder();
...
sb.serviceUnder("/docs", newDocServiceBuilder()
// Include Thrift services and Annotated services.
.include(DocServiceFilter.ofThrift().or(DocServiceFilter.ofAnnotated()))
// Exclude the method whose name is "foo" in Thrift services.
.exclude(DocServiceFilter.ofThrift().and(DocServiceFilter.ofMethodName("foo")))
.build());
HttpHeaderNames now forks from Guava's HttpHeaders instead of Netty's HttpHeaderNames
because it has more recent HTTP headers which may be useful to service authors.
You can use SystemInfo utility class in order to get the system information. #1656
// Java versionSystemInfo.javaVersion();
// HostnameSystemInfo.hostname();
// The current process IDSystemInfo.pid();
// The current time in microsecondsSystemInfo.currentTimeMicros();
Improvements
Set 0.5 to the default failure rate threshold of a circuit breaker. #1657
Strip a leading slash in an HttpFile resource path. #1661#1650
// Will strip the leading slashHttpFile.ofResource(ClassLoader.getSystemClassLoader(), "/java/lang/Object.class");
ByteBufs are no longer leaked when you use Spring WebFlux integration. #1658
It was possible to leak a ByteBuf if a client closes a connection before reading the body of an HTTP response.
Breaking Change
DocServicePlugin interface now has name() method and generateSpecification() method signature has changed. #1609