package akkasse

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait EventStreamMarshalling extends AnyRef

    Mixing in this trait lets a source of ServerSentEvents be marshalled to a a HttpEntity and hence as a HttpResponse.

  2. 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.

    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 dy default and can be customized by overriding EventStreamUnmarshalling.maxEventSize. The maximum size for parsing lines of a server-sent event is 4KiB dy default and can be customized by overriding EventStreamUnmarshalling.maxLineSize.

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

    Representation of a server-sent event.

    Representation of a server-sent event.

    data

    optional data, may be empty or span multiple lines

    type

    optional type, must not contain \n or \r

    id

    optional id, must not contain \n or \r

    retry

    optional reconnection delay in milliseconds

Value Members

  1. object EventStreamMarshalling extends EventStreamMarshalling

    Importing EventStreamMarshalling.toEntity lets a source of ServerSentEvents be marshalled to a HttpEntity and hence as a HttpResponse.

  2. object EventStreamParser

    Flow that converts raw byte string input into ServerSentEvents.

    Flow that converts raw byte string input into ServerSentEvents.

    This API is made for use in non-akka-http clients, like Play's WSClient.

  3. object EventStreamUnmarshalling extends EventStreamUnmarshalling

    Importing EventStreamUnmarshalling.fromEventStream lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.

    Importing EventStreamUnmarshalling.fromEventStream 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. The maximum size for parsing lines of a server-sent event is 4KiB. If you need to customize any of these, use the EventStreamUnmarshalling trait and override the respective methods.

  4. object MediaTypes

    Media types for Server-Sent Events.

  5. object ServerSentEvent extends Serializable

Ungrouped