Packages

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 akka.http.sse.max-event-size and akka.http.sse.max-line-size properties respectively.

Annotations
@ApiMayChange()
Source
EventStreamUnmarshalling.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventStreamUnmarshalling
  2. EventStreamUnmarshalling
  3. AnyRef
  4. Any
  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.

    Definition Classes
    EventStreamUnmarshalling
  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.

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

    Definition Classes
    EventStreamUnmarshalling

Deprecated Value Members

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

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