package sse
- Alphabetic
- Public
- Protected
Type Members
- trait EventStreamUnmarshalling extends AnyRef
Mixing in this trait lets a
HttpEntitywith atext/event-streammedia type be unmarshalled to a source of ServerSentEvents.Mixing in this trait lets a
HttpEntitywith atext/event-streammedia 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 configuring
pekko.http.sse.max-event-size. The maximum size for parsing lines of a server-sent event is 4KiB by default and can be customized by configuringpekko.http.sse.max-line-size.- Annotations
- @ApiMayChange()
Value Members
- 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-pekko-http clients, like Play's WSClient.
- Annotations
- @ApiMayChange()
- object EventStreamUnmarshalling extends EventStreamUnmarshalling
Importing EventStreamUnmarshalling.fromEventsStream lets an
HttpEntitywith atext/event-streammedia type be unmarshalled to a source of ServerSentEvents.Importing EventStreamUnmarshalling.fromEventsStream lets an
HttpEntitywith atext/event-streammedia 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
pekko.http.sse.max-event-sizeandpekko.http.sse.max-line-sizeproperties respectively.- Annotations
- @ApiMayChange()