public class EventStreamUnmarshalling$ extends java.lang.Object implements EventStreamUnmarshalling
EventStreamUnmarshalling.fromEventsStream
lets an 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, set the pekko.http.sse.max-event-size
and
pekko.http.sse.max-line-size
properties respectively.
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,org.apache.pekko.stream.scaladsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> |
fromEventStream()
Deprecated.
Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration. Since Akka HTTP 10.1.8.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromEventsStream, fromEventsStream, fromEventsStream, maxEventSize, maxLineSize
public static final EventStreamUnmarshalling$ MODULE$
public final Unmarshaller<HttpEntity,org.apache.pekko.stream.scaladsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventStream()
fromEventStream
in interface EventStreamUnmarshalling