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