You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/12/04 03:18:52 UTC

[GitHub] [servicecomb-java-chassis] yuzhouzhouba commented on issue #2072: 您好,在传递大文件的时候,遇到的网络延时问题

yuzhouzhouba commented on issue #2072:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2072#issuecomment-738538763


   按照开发的文档的示例代码进行编写
   ```
   @GetMapping(path = "/resource")
   @ApiResponses({
     @ApiResponse(code = 200, response = File.class, message = "")
   })
   public ResponseEntity<Resource> resource() {
     return ResponseEntity
         .ok()
         .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN_VALUE)
         .header(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=resource.txt")
         .body(resource);
   }
   ```
   
   
   1、在点击的时候有几秒的延迟
   2、在不同的环境下有几率性残缺,
   3、浏览器不能显示进度


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org