public class EventStreamUnmarshalling$ extends java.lang.Object implements EventStreamUnmarshalling
EventStreamUnmarshalling.fromEventStream
lets a HttpEntity
with a text/event-stream
media type be
unmarshalled to a source of ServerSentEvent
s.
The maximum size for parsing server-sent events is 8KiB. The maximum size for parsing lines of a server-sent event
is 4KiB. If you need to customize any of these, use the EventStreamUnmarshalling
trait and override the
respective methods.
Modifier and Type | Field and Description |
---|---|
static EventStreamUnmarshalling$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
EventStreamUnmarshalling$() |
Modifier and Type | Method and Description |
---|---|
Unmarshaller<HttpEntity,akka.stream.scaladsl.Source<ServerSentEvent,akka.NotUsed>> |
fromEventStream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
maxEventSize, maxLineSize
public static final EventStreamUnmarshalling$ MODULE$
public final Unmarshaller<HttpEntity,akka.stream.scaladsl.Source<ServerSentEvent,akka.NotUsed>> fromEventStream()
fromEventStream
in interface EventStreamUnmarshalling