Skip to content

Add support for SSE to WebMvc.fn #25920

@sdeleuze

Description

@sdeleuze

On Spring MVC with annotations, ResponseBodyEmitter return types (and its specialized variant SseEmitter) are used to emit streaming values. Currently WebMvc.fn has support for asynchronous single value but not for SSE. I am wondering if ServerResponse.async(Object asyncResponse) should be improved to support such use case.

Worth to notice, the emitter instance is designed to be passed to another component, see ResponseBodyEmitter Javadoc for more details.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions