EventStreamUnmarshalling

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

Mixing in this trait lets a 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 by default and can be customized by configuring pekko.http.sse.max-event-size. The maximum size for parsing lines of a server-sent event is 4KiB by default and can be customized by configuring pekko.http.sse.max-line-size.

Attributes

Companion
object
Source
EventStreamUnmarshalling.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete 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

Source
EventStreamUnmarshalling.scala

Deprecated fields

Implicits

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

Source
EventStreamUnmarshalling.scala