Package

akka.http.scaladsl.unmarshalling

sse

Permalink

package sse

Content Hierarchy
Visibility
  1. Public
  2. All

Type Members

  1. trait EventStreamUnmarshalling extends AnyRef

    Permalink

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

    Annotations
    @ApiMayChange()

Value Members

  1. object EventStreamParser

    Permalink

    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.

    Annotations
    @ApiMayChange()
  2. object EventStreamUnmarshalling extends EventStreamUnmarshalling

    Permalink

    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.

    Annotations
    @ApiMayChange()

Ungrouped