Class EventStreamMarshalling

java.lang.Object
org.apache.pekko.http.javadsl.marshalling.sse.EventStreamMarshalling

public class EventStreamMarshalling extends Object
Using eventStreamMarshaller lets a source of ServerSentEvents be marshalled to a HttpResponse.
  • Constructor Details

    • EventStreamMarshalling

      public EventStreamMarshalling()
  • Method Details

    • toEventStream

      public static Marshaller<org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>,RequestEntity> toEventStream()
      Lets a source of ServerSentEvents be marshalled to a HttpResponse.
      Returns:
      (undocumented)