Support StreamingResponseBody return value type

Issue: SPR-12831
This commit is contained in:
Rossen Stoyanchev
2015-03-23 15:37:06 -04:00
parent 76cf5beb59
commit 95f6e4cc9b
8 changed files with 386 additions and 9 deletions

View File

@@ -1261,6 +1261,8 @@ The following are the supported return types:
asynchronously; also supported as the body within a `ResponseEntity`.
* An `SseEmitter` can be returned to write Server-Sent Events to the response
asynchronously; also supported as the body within a `ResponseEntity`.
* A `StreamingResponseBody` can be returned to write to the response OutputStream
asynchronously; also supported as the body within a `ResponseEntity`.
* Any other return type is considered to be a single model attribute to be exposed to
the view, using the attribute name specified through `@ModelAttribute` at the method
level (or the default attribute name based on the return type class name). The model