Class EventStreamMarshalling
java.lang.Object
org.apache.pekko.http.javadsl.marshalling.sse.EventStreamMarshalling
Using
eventStreamMarshaller
lets a source of ServerSentEvent
s be marshalled to a HttpResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Marshaller<org.apache.pekko.stream.javadsl.Source<ServerSentEvent,
org.apache.pekko.NotUsed>, RequestEntity> Lets a source ofServerSentEvent
s be marshalled to aHttpResponse
.
-
Constructor Details
-
EventStreamMarshalling
public EventStreamMarshalling()
-
-
Method Details
-
toEventStream
public static Marshaller<org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>, toEventStream()RequestEntity> Lets a source ofServerSentEvent
s be marshalled to aHttpResponse
.- Returns:
- (undocumented)
-