public class EventStreamMarshalling
extends java.lang.Object
eventStreamMarshaller
lets a source of ServerSentEvent
s be marshalled to a HttpResponse
.Constructor and Description |
---|
EventStreamMarshalling() |
Modifier and Type | Method and Description |
---|---|
static Marshaller<org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>,RequestEntity> |
toEventStream()
Lets a source of
ServerSentEvent s be marshalled to a HttpResponse . |
public static Marshaller<org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>,RequestEntity> toEventStream()
ServerSentEvent
s be marshalled to a HttpResponse
.