Class ServerSentEventResponseConverterFunction

java.lang.Object
com.linecorp.armeria.server.annotation.ServerSentEventResponseConverterFunction
All Implemented Interfaces:
ResponseConverterFunction

public final class ServerSentEventResponseConverterFunction extends Object implements ResponseConverterFunction
A response converter implementation which creates an HttpResponse with content-type: text/event-stream. The objects published from a Publisher or Stream would be converted into Server-Sent Events if a ProducesEventStream annotation is specified on an annotated service method.