Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Streaming Directly to the OutputStream [SPR-12831] #17428

Closed
spring-issuemaster opened this issue Mar 19, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Mar 19, 2015

Marcel Overdijk opened SPR-12831 and commented

Provide a way to returning a ResponseEntity containing a streaming output stream.
This similar to Jersey's https://docs.oracle.com/javaee/6/api/javax/ws/rs/core/StreamingOutput.html

This is useful for large files to be downloaded.


Affects: 4.1.5

Issue Links:

  • #16826 HTTP Streaming and Server-Sent Events (SSE)

Referenced from: commits 95f6e4c

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 19, 2015

Rossen Stoyanchev commented

As part of work for #16826 we've added support for returning ResponseEntity with an SseEmitter as the body as well as the more general ResponseBodyEmitter, which applies an HttpMessageConverter each time an object is emitted. I'm wondering if you have seen that?

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 23, 2015

Rossen Stoyanchev commented

The new return value type is called StreamingResponseBody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.