Packages

o

org.apache.pekko.http.javadsl.unmarshalling.sse

EventStreamUnmarshalling

object EventStreamUnmarshalling

Using fromEventsStream lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

Source
EventStreamUnmarshalling.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventStreamUnmarshalling
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def fromEventsStream(settings: ServerSentEventSettings): Unmarshaller[HttpEntity, 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. def fromEventsStream(implicit system: ActorSystem): Unmarshaller[HttpEntity, Source[ServerSentEvent, NotUsed]]

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

Deprecated Value Members

  1. val fromEventStream: Unmarshaller[HttpEntity, Source[ServerSentEvent, NotUsed]]
    Annotations
    @deprecated
    Deprecated

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