yanghao605 commented on code in PR #4875:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/4875#discussion_r2238798928
##########
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java:
##########
@@ -91,4 +105,75 @@ public CompletableFuture<Void>
beforeSendResponseAsync(Invocation invocation, Ht
}
return future;
}
+
+ public static boolean isServerSendEvent(Response response) {
+ return response.getResult() instanceof Publisher<?>;
+ }
+
+ private static CompletableFuture<Void> writeServerSendEvent(Invocation
invocation, Response response,
+ ProduceProcessor produceProcessor, HttpServletResponseEx responseEx) {
+ responseEx.setChunked(true);
Review Comment:
这里如果是Rest Over
Servlet模式下,走tomcat管理链接时,返回的响应头中会存在两个chunk的header,这里如果go的客户端直接调用的话会抛出异常
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]