Packages

trait EventStreamUnmarshalling extends AnyRef

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 akka.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 akka.http.sse.max-line-size.

Annotations
@ApiMayChange()
Source
EventStreamUnmarshalling.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventStreamUnmarshalling
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def fromEventsStream(settings: ServerSentEventSettings): FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]

    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.

    settings

    overrides the default unmarshalling behavior.

  2. implicit final def fromEventsStream(implicit system: ActorSystem): FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]

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

Deprecated Value Members

  1. final val fromEventStream: FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]
    Annotations
    @deprecated
    Deprecated

    (Since version 10.1.8) Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration