org.apache.pekko.http.scaladsl.unmarshalling.sse.EventStreamUnmarshalling
See theEventStreamUnmarshalling companion trait
@ApiMayChange
object EventStreamUnmarshalling extends EventStreamUnmarshalling
Importing EventStreamUnmarshalling.fromEventsStream lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
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.
Attributes
- Companion
- trait
- Source
- EventStreamUnmarshalling.scala
- Graph
-
- Supertypes
- Self type
Members list
In this article