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;
}
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:https://github.com/quarkusio/quarkus/issues/15778
$upstream:15778$