Package

de.heikoseeberger

akkasse

Permalink

package akkasse

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. akkasse
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait EventStreamMarshalling extends AnyRef

    Permalink

    Mixing in this trait lets an akka.stream.scaladsl.Source of ServerSentEvents be marshallable to an akka.http.model.HttpResponse.

    Mixing in this trait lets an akka.stream.scaladsl.Source of ServerSentEvents be marshallable to an akka.http.model.HttpResponse.

    Attention: An implicit scala.concurrent.ExecutionContext has to be in scope!

  2. trait EventStreamUnmarshalling extends AnyRef

    Permalink

    Mixing in this trait lets an akka.http.model.HttpEntity with a text/event-stream media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent].

    Mixing in this trait lets an akka.http.model.HttpEntity with a text/event-stream media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent].

    Attention: An implicit scala.concurrent.ExecutionContext has to be in scope!

  3. final case class ServerSentEvent(data: String, eventType: Option[String] = None, id: Option[String] = None, retry: Option[Int] = None) extends Product with Serializable

    Permalink

    Representation of a Server-Sent Event.

    Representation of a Server-Sent Event.

    data

    data which may be empty or span multiple lines

    eventType

    optional event type, must not contain \n or \r

    id

    event id, must not contain \n or \r

    retry

    the reconnection time in milliseconds.

  4. type ToServerSentEvent[A] = (A) ⇒ ServerSentEvent

    Permalink

    View from A to ServerSentEvent.

    View from A to ServerSentEvent.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0) See deprecation of EventPublisher

Value Members

  1. object EventStreamMarshalling extends EventStreamMarshalling

    Permalink

    Importing EventStreamMarshalling.toResponseMarshaller lets an akka.stream.scaladsl.Source of ServerSentEvents be marshallable to an akka.http.model.HttpResponse.

    Importing EventStreamMarshalling.toResponseMarshaller lets an akka.stream.scaladsl.Source of ServerSentEvents be marshallable to an akka.http.model.HttpResponse.

    Attention: An implicit scala.concurrent.ExecutionContext has to be in scope!

  2. object EventStreamUnmarshalling extends EventStreamUnmarshalling

    Permalink

    Importing EventStreamUnmarshalling.fromEntityUnmarshaller lets an akka.http.model.HttpEntity with a text/event-stream media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent].

    Importing EventStreamUnmarshalling.fromEntityUnmarshaller lets an akka.http.model.HttpEntity with a text/event-stream media type be unmarshallable to an akka.stream.scaladsl.Source[ServerSentEvent].

    Attention: An implicit scala.concurrent.ExecutionContext has to be in scope!

  3. object MediaTypes

    Permalink

    Media types for Server-Sent Events.

  4. object ServerSentEvent extends Serializable

    Permalink
  5. object WithHeartbeats

    Permalink

    Connect a Source[ServerSentEvents] to a with-heartbeats flow to merge it with periodic heartbeats.

Inherited from AnyRef

Inherited from Any

Ungrouped