snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

RESTEasy Reactive: SSE endpoints should have the same content type automatically selected as normal endpoints #300

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

If we can infer the right default content-type for String and JSON for normal methods, we should do the same for this sort of SSE endpoint:

    @Path("stream")
    @GET
    @Produces(MediaType.SERVER_SENT_EVENTS)
// this should be inferred
    @RestSseElementType(MediaType.APPLICATION_JSON)
    public Multi<Fruit> sse(){
        return processor;
    }

https://github.com/quarkusio/quarkus/issues/15778


$upstream:15778$