chengyouling commented on code in PR #4875:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4875#discussion_r2245116911


##########
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:
   增加setChunkedForEvent方法独立处理sse场景



-- 
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]

Reply via email to