EventStreamUnmarshalling

org.apache.pekko.http.scaladsl.unmarshalling.sse.EventStreamUnmarshalling
See theEventStreamUnmarshalling companion trait

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
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

Value parameters

settings

overrides the default unmarshalling behavior.

Attributes

Inherited from:
EventStreamUnmarshalling
Source
EventStreamUnmarshalling.scala

Deprecated and Inherited fields

Implicits

Inherited implicits

Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

Attributes

Inherited from:
EventStreamUnmarshalling
Source
EventStreamUnmarshalling.scala