Class EventStreamUnmarshalling$
java.lang.Object
akka.http.scaladsl.unmarshalling.sse.EventStreamUnmarshalling$
- All Implemented Interfaces:
EventStreamUnmarshalling
Importing
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 akka.http.sse.max-event-size
and
akka.http.sse.max-line-size
properties respectively.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EventStreamUnmarshalling$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Unmarshaller<HttpEntity,
akka.stream.scaladsl.Source<ServerSentEvent, akka.NotUsed>> Deprecated.Binary compatibility method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface akka.http.scaladsl.unmarshalling.sse.EventStreamUnmarshalling
fromEventsStream, fromEventsStream, fromEventsStream, maxEventSize, maxLineSize
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
EventStreamUnmarshalling$
public EventStreamUnmarshalling$()
-
-
Method Details
-
fromEventStream
public final Unmarshaller<HttpEntity,akka.stream.scaladsl.Source<ServerSentEvent, fromEventStream()akka.NotUsed>> Deprecated.Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration. Since 10.1.8.- Specified by:
fromEventStream
in interfaceEventStreamUnmarshalling
-